mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
validate: Don't pass NULL to g_strsplit
This commit is contained in:
parent
ebde58f1d1
commit
fea3893686
1 changed files with 2 additions and 2 deletions
|
@ -1191,10 +1191,10 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
|
||||||
guint i;
|
guint i;
|
||||||
gchar *lfilename = NULL, *tldir = NULL;
|
gchar *lfilename = NULL, *tldir = NULL;
|
||||||
gboolean found_actions = FALSE, is_config, ret = TRUE;
|
gboolean found_actions = FALSE, is_config, ret = TRUE;
|
||||||
|
const gchar *scenarios_path = g_getenv ("GST_VALIDATE_SCENARIOS_PATH");
|
||||||
|
|
||||||
gchar **env_scenariodir =
|
gchar **env_scenariodir =
|
||||||
g_strsplit (g_getenv ("GST_VALIDATE_SCENARIOS_PATH"), ":",
|
scenarios_path ? g_strsplit (scenarios_path, ":", 0) : NULL;
|
||||||
0);
|
|
||||||
|
|
||||||
if (!scenario_name)
|
if (!scenario_name)
|
||||||
goto invalid_name;
|
goto invalid_name;
|
||||||
|
|
Loading…
Reference in a new issue