mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
validate: Do not check strv length on NULL pointers
This is not legal Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/234>
This commit is contained in:
parent
f47e5b163f
commit
73a674ac2d
1 changed files with 1 additions and 1 deletions
|
@ -4433,7 +4433,7 @@ gst_validate_scenario_get_include_paths (const gchar * relative_scenario)
|
|||
0) : NULL;
|
||||
g_free (scenarios_path);
|
||||
|
||||
n = g_strv_length (env_scenariodir);
|
||||
n = env_scenariodir ? g_strv_length (env_scenariodir) : 0;
|
||||
env_scenariodir = g_realloc_n (env_scenariodir, n + 3, sizeof (gchar *));
|
||||
env_scenariodir[n] = g_build_filename (g_get_user_data_dir (),
|
||||
"gstreamer-" GST_API_VERSION, "validate",
|
||||
|
|
Loading…
Reference in a new issue