Avoid a warning

This commit is contained in:
Matthias Clasen 2009-10-25 02:50:12 -04:00
parent 36df8c9b9c
commit d8fc1528b7

View File

@ -5956,11 +5956,14 @@ g_file_query_default_handler (GFile *file,
char *path;
uri_scheme = g_file_get_uri_scheme (file);
appinfo = g_app_info_get_default_for_uri_scheme (uri_scheme);
g_free (uri_scheme);
if (uri_scheme)
{
appinfo = g_app_info_get_default_for_uri_scheme (uri_scheme);
g_free (uri_scheme);
if (appinfo != NULL)
return appinfo;
if (appinfo != NULL)
return appinfo;
}
info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,