gvfs r2082 - in branches/gnome-2-24: . client



Author: tbzatek
Date: Tue Nov  4 14:07:18 2008
New Revision: 2082
URL: http://svn.gnome.org/viewvc/gvfs?rev=2082&view=rev

Log:
2008-11-04  Tomas Bzatek  <tbzatek redhat com> 

        * client/gdaemonmount.c: (g_daemon_mount_guess_content_type_sync):
        Return an empty array on success when no content type
        matches (#357468)



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/client/gdaemonmount.c

Modified: branches/gnome-2-24/client/gdaemonmount.c
==============================================================================
--- branches/gnome-2-24/client/gdaemonmount.c	(original)
+++ branches/gnome-2-24/client/gdaemonmount.c	Tue Nov  4 14:07:18 2008
@@ -366,11 +366,12 @@
   GDaemonMount *daemon_mount = G_DAEMON_MOUNT (mount);
   char **result;
 
-  result = NULL;
   G_LOCK (daemon_mount);
   if (daemon_mount->mount_info->x_content_types != NULL &&
       strlen (daemon_mount->mount_info->x_content_types) > 0)
     result = g_strsplit (daemon_mount->mount_info->x_content_types, " ", 0);
+  else
+    result = g_new0 (char *, 1);
   G_UNLOCK (daemon_mount);
 
   return result;



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