gvfs r2081 - in trunk: . client



Author: tbzatek
Date: Tue Nov  4 13:59:39 2008
New Revision: 2081
URL: http://svn.gnome.org/viewvc/gvfs?rev=2081&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



Modified:
   trunk/ChangeLog
   trunk/client/gdaemonmount.c

Modified: trunk/client/gdaemonmount.c
==============================================================================
--- trunk/client/gdaemonmount.c	(original)
+++ trunk/client/gdaemonmount.c	Tue Nov  4 13:59:39 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]