projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63262d
)
Avoid a warning
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 25 Oct 2009 06:56:13 +0000
(
02:56
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 25 Oct 2009 06:56:13 +0000
(
02:56
-0400)
gio/gfile.c
patch
|
blob
|
history
diff --git
a/gio/gfile.c
b/gio/gfile.c
index
54a41c0
..
c4a72e3
100644
(file)
--- a/
gio/gfile.c
+++ b/
gio/gfile.c
@@
-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,