[rhythmbox] rhythmdb: protect against property values being NULL



commit f6cf2e81154bfe5b3c41ce0e6e41a37d54c533fc
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Mar 20 21:54:19 2010 +1000

    rhythmdb: protect against property values being NULL

 rhythmdb/rhythmdb-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rhythmdb/rhythmdb-tree.c b/rhythmdb/rhythmdb-tree.c
index 8005ca9..39cbc5a 100644
--- a/rhythmdb/rhythmdb-tree.c
+++ b/rhythmdb/rhythmdb-tree.c
@@ -1751,7 +1751,7 @@ rhythmdb_tree_evaluate_query (RhythmDB *adb,
 #define RHYTHMDB_PROPERTY_COMPARE(OP) \
 			switch (rhythmdb_get_property_type (db, data->propid)) { \
 			case G_TYPE_STRING: \
-				if (strcmp (rhythmdb_entry_get_string (entry, data->propid), \
+				if (g_strcmp0 (rhythmdb_entry_get_string (entry, data->propid), \
 					    g_value_get_string (data->val)) OP 0) \
 					return FALSE; \
 				break; \



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