mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
pitivi-formatter: Do not g_file_test on a NULL pointer
This commit is contained in:
parent
fbdf04c674
commit
fd029e1251
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ pitivi_can_load_uri (GESFormatter * dummy_instance, const gchar * uri,
|
|||
xmlXPathContextPtr xpathCtx;
|
||||
gchar *filename = g_filename_from_uri (uri, NULL, NULL);
|
||||
|
||||
if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
|
||||
if (!filename || !g_file_test (filename, G_FILE_TEST_EXISTS)) {
|
||||
g_free (filename);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue