gvfs r2163 - in trunk: . daemon



Author: tbzatek
Date: Wed Jan  7 12:35:02 2009
New Revision: 2163
URL: http://svn.gnome.org/viewvc/gvfs?rev=2163&view=rev

Log:
2009-01-07  Tomas Bzatek  <tbzatek redhat com> 

	* daemon/gvfsbackendnetwork.c: (recompute_files):
	Remove unnecessary GError



Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendnetwork.c

Modified: trunk/daemon/gvfsbackendnetwork.c
==============================================================================
--- trunk/daemon/gvfsbackendnetwork.c	(original)
+++ trunk/daemon/gvfsbackendnetwork.c	Wed Jan  7 12:35:02 2009
@@ -304,8 +304,8 @@
       enumer = g_file_enumerate_children (server_file, 
                                           NETWORK_FILE_ATTRIBUTES, 
                                           G_FILE_QUERY_INFO_NONE, 
-                                          NULL, &error);
-                                          
+                                          NULL, NULL);
+
       if (enumer != NULL)
         {
           info = g_file_enumerator_next_file (enumer, NULL, NULL);
@@ -327,10 +327,7 @@
           g_file_enumerator_close (enumer, NULL, NULL);
           g_object_unref (enumer);
         }
-        
-      if (error)
-        g_error_free (error);
-    
+
       g_object_unref (server_file);
 
       g_free (workgroup);
@@ -356,7 +353,7 @@
 	      g_warning ("Couldn't create directory monitor on %s. Error: %s", 
 			 uri, error->message);
 	      g_free (uri);
-	      g_error_free (error);
+	      g_clear_error (&error);
 	    }
 	}
       



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