Commit b06f928b authored by Martyn James Russell's avatar Martyn James Russell

Fixed comparison with unset variable.

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

svn path=/trunk/; revision=3135
parent 6eded042
2009-03-25 Martyn Russell <martyn@imendio.com>
* src/trackerd/tracker-daemon.c: (tracker_daemon_get_stats): Fixed
comparison with unset variable.
2009-03-25 Jürg Billeter <j@bitron.ch>
* configure.ac: Disable static libraries by default.
......
......@@ -399,17 +399,15 @@ tracker_daemon_get_stats (TrackerDaemon *object,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment