glib r7492 - trunk/gio



Author: matthiasc
Date: Mon Sep 15 16:26:38 2008
New Revision: 7492
URL: http://svn.gnome.org/viewvc/glib?rev=7492&view=rev

Log:
Ignore an empty Path value


Modified:
   trunk/gio/ChangeLog
   trunk/gio/gdesktopappinfo.c

Modified: trunk/gio/gdesktopappinfo.c
==============================================================================
--- trunk/gio/gdesktopappinfo.c	(original)
+++ trunk/gio/gdesktopappinfo.c	Mon Sep 15 16:26:38 2008
@@ -272,6 +272,12 @@
   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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]