tracker r3135 - in trunk: . src/trackerd



Author: mr
Date: Wed Mar 25 13:31:07 2009
New Revision: 3135
URL: http://svn.gnome.org/viewvc/tracker?rev=3135&view=rev

Log:
	* src/trackerd/tracker-daemon.c: (tracker_daemon_get_stats): Fixed
	comparison with unset variable.


Modified:
   trunk/ChangeLog
   trunk/src/trackerd/tracker-daemon.c

Modified: trunk/src/trackerd/tracker-daemon.c
==============================================================================
--- trunk/src/trackerd/tracker-daemon.c	(original)
+++ trunk/src/trackerd/tracker-daemon.c	Wed Mar 25 13:31:07 2009
@@ -399,17 +399,15 @@
 		for (i = 0; i < values->len; i++) {
 			gchar       **p;
 			const gchar  *service_type = NULL;
-			gint          old_count, new_count;
+			gint          new_count;
 
 			p = g_ptr_array_index (values, i);
 			service_type = p[0];
 			new_count = atoi (p[1]);
 
-			if (old_count != new_count) {
-				g_hash_table_replace (priv->last_stats, 
-						      g_strdup (service_type), 
-						      GINT_TO_POINTER (new_count));
-			}
+			g_hash_table_replace (priv->last_stats, 
+					      g_strdup (service_type), 
+					      GINT_TO_POINTER (new_count));
 		}
 
 		g_ptr_array_free (parent_stats, TRUE);



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