[tracker/cursor] libtracker-data: Don't set str to NULL before setting it to a value



commit 23054f175808e30538523a199a54d5c53141049f
Author: Martyn Russell <martyn lanedo com>
Date:   Wed Jan 19 16:33:22 2011 +0000

    libtracker-data: Don't set str to NULL before setting it to a value

 src/libtracker-data/tracker-data-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index d8af873..ef92d2c 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -436,7 +436,8 @@ check_range_conversion_is_allowed (const gchar  *ontology_path,
 	g_free (query);
 
 	if (cursor && tracker_db_cursor_iter_next (cursor, NULL, NULL)) {
-		const gchar *str = NULL;
+		const gchar *str;
+
 		str = tracker_db_cursor_get_string (cursor, 0, NULL);
 
 		if (g_strcmp0 (object, str) != 0) {



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