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;
|
||||
gchar *lfilename = NULL, *tldir = NULL;
|
||||
gboolean found_actions = FALSE, is_config, ret = TRUE;
|
||||
const gchar *scenarios_path = g_getenv ("GST_VALIDATE_SCENARIOS_PATH");
|
||||
|
||||
gchar **env_scenariodir =
|
||||
g_strsplit (g_getenv ("GST_VALIDATE_SCENARIOS_PATH"), ":",
|
||||
0);
|
||||
scenarios_path ? g_strsplit (scenarios_path, ":", 0) : NULL;
|
||||
|
||||
if (!scenario_name)
|
||||
goto invalid_name;
|
||||
|
|
Loading…
Reference in a new issue