[tracker] Don't pick empty strings when coalescing data.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Don't pick empty strings when coalescing data.
- Date: Wed, 4 Nov 2009 10:35:12 +0000 (UTC)
commit ef99d725f4e9cb122f0e73b87d185cc5ffb8ac7d
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Nov 3 14:55:16 2009 +0100
Don't pick empty strings when coalescing data.
src/libtracker-common/tracker-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-utils.c b/src/libtracker-common/tracker-utils.c
index f10bbec..0bce806 100644
--- a/src/libtracker-common/tracker-utils.c
+++ b/src/libtracker-common/tracker-utils.c
@@ -514,7 +514,7 @@ tracker_coalesce (gint n_values,
value = va_arg (args, gchar *);
if (value) {
- if (!result) {
+ if (*value && !result) {
result = value;
} else {
g_free (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]