[tracker/fixed-cursor] tracker-store: Handle NULL
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/fixed-cursor] tracker-store: Handle NULL
- Date: Mon, 26 Apr 2010 14:19:02 +0000 (UTC)
commit c50939a75c996eed88efce78e24eb1ac1c8079f3
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Apr 26 16:17:58 2010 +0200
tracker-store: Handle NULL
src/tracker-store/tracker-resources.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 01179bf..2d0a195 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -296,6 +296,9 @@ query_inthread (TrackerDBCursor *cursor, GError *error, gpointer user_data)
const gchar *result_str;
result_str = tracker_db_cursor_get_string (cursor, i);
+ if (result_str == NULL)
+ result_str = "";
+
dbus_message_iter_append_basic (&cols_iter, DBUS_TYPE_STRING, &result_str);
if (length > DBUS_ARBITRARY_MAX_MSG_SIZE) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]