tracker r2161 - in branches/indexer-split: . src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2161 - in branches/indexer-split: . src/trackerd
- Date: Wed, 27 Aug 2008 08:17:51 +0000 (UTC)
Author: pvanhoof
Date: Wed Aug 27 08:17:51 2008
New Revision: 2161
URL: http://svn.gnome.org/viewvc/tracker?rev=2161&view=rev
Log:
2008-08-27 Philip Van Hoof <philip codeminded be>
* src/trackerd/tracker-daemon.c: Fixed a memory problem allocating 0
bytes, found using valgrind
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/trackerd/tracker-daemon.c
Modified: branches/indexer-split/src/trackerd/tracker-daemon.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-daemon.c (original)
+++ branches/indexer-split/src/trackerd/tracker-daemon.c Wed Aug 27 08:17:51 2008
@@ -198,7 +198,7 @@
clean_last_stats (priv);
priv->last_stats = new_stats;
- if (values) {
+ if (values && values->len > 0) {
ret = (GStrv) g_malloc (sizeof (gchar*) * values->len);
for (i = 0 ; i < values->len; i++)
ret[i] = g_ptr_array_index (values, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]