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:
5d97ea2
)
BugĀ 595138 - GFile not robust with invalid input
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 19 Nov 2009 00:43:30 +0000
(18:43 -0600)
committer
Ryan Lortie
<desrt@desrt.ca>
Thu, 19 Nov 2009 15:45:53 +0000
(09:45 -0600)
Improve handling of g_file_query_default_handler() when called on an
invalid GFile (ie: one created with an invalid URI).
gio/gfile.c
patch
|
blob
|
history
diff --git
a/gio/gfile.c
b/gio/gfile.c
index
36c0439
..
ceaf802
100644
(file)
--- a/
gio/gfile.c
+++ b/
gio/gfile.c
@@
-5999,7
+5999,7
@@
g_file_query_default_handler (GFile *file,
char *path;
uri_scheme = g_file_get_uri_scheme (file);
- if (uri_scheme)
+ if (uri_scheme
&& uri_scheme[0] != '\0'
)
{
appinfo = g_app_info_get_default_for_uri_scheme (uri_scheme);
g_free (uri_scheme);