projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ignore an empty Path value
[platform/upstream/glib.git]
/
gio
/
gdesktopappinfo.c
diff --git
a/gio/gdesktopappinfo.c
b/gio/gdesktopappinfo.c
index
af57e63
..
027334c
100644
(file)
--- a/
gio/gdesktopappinfo.c
+++ b/
gio/gdesktopappinfo.c
@@
-272,6
+272,12
@@
g_desktop_app_info_new_from_keyfile (GKeyFile *key_file)
if (info->exec)
info->binary = binary_from_exec (info->exec);
+ if (info->path && info->path[0] == '\0')
+ {
+ g_free (info->path);
+ info->path = NULL:
+ }
+
return info;
}