validate: Don't pass NULL to g_strsplit

This commit is contained in:
Nicolas Dufresne 2014-05-24 01:28:36 -04:00
parent ebde58f1d1
commit fea3893686

View file

@ -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;