Ignore an empty Path value
[platform/upstream/glib.git] / gio / gdesktopappinfo.c
index af57e63..027334c 100644 (file)
@@ -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;
 }