mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +01:00
Avoid a warning
This commit is contained in:
parent
e63262d49d
commit
f3fbf37dd8
11
gio/gfile.c
11
gio/gfile.c
@ -5956,11 +5956,14 @@ g_file_query_default_handler (GFile *file,
|
|||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
uri_scheme = g_file_get_uri_scheme (file);
|
uri_scheme = g_file_get_uri_scheme (file);
|
||||||
appinfo = g_app_info_get_default_for_uri_scheme (uri_scheme);
|
if (uri_scheme)
|
||||||
g_free (uri_scheme);
|
{
|
||||||
|
appinfo = g_app_info_get_default_for_uri_scheme (uri_scheme);
|
||||||
|
g_free (uri_scheme);
|
||||||
|
|
||||||
if (appinfo != NULL)
|
if (appinfo != NULL)
|
||||||
return appinfo;
|
return appinfo;
|
||||||
|
}
|
||||||
|
|
||||||
info = g_file_query_info (file,
|
info = g_file_query_info (file,
|
||||||
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
|
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user