Commit fd029e12 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

pitivi-formatter: Do not g_file_test on a NULL pointer

parent fbdf04c6
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment