diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 91013d5b61..80f63c34dd 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -3800,7 +3800,7 @@ gst_validate_scenario_load (GstValidateScenario * scenario, { gchar **scenarios = NULL; guint i; - gboolean found_actions = FALSE, is_config, ret = TRUE; + gboolean found_actions = FALSE, is_config, ret = FALSE; gchar **include_paths = gst_validate_scenario_get_include_paths (NULL); if (!scenario_name) @@ -3812,6 +3812,8 @@ gst_validate_scenario_load (GstValidateScenario * scenario, guint include_i; gchar *lfilename = NULL, *tldir = NULL, *scenario_file = NULL; + ret = FALSE; + /* First check if the scenario name is not a full path to the * actual scenario */ if (g_file_test (scenarios[i], G_FILE_TEST_IS_REGULAR)) {