[couchdb-glib/wip/query-response] Use g_str_equal instead of g_strcmp0



commit 7e8e81f5651a59e1a73c31d237cb49bdc7ea9447
Author: Krzysztof Klimonda <kklimonda syntaxhighlighted com>
Date:   Fri Nov 19 18:00:04 2010 +0100

    Use g_str_equal instead of g_strcmp0

 couchdb-glib/couchdb-query.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/couchdb-glib/couchdb-query.c b/couchdb-glib/couchdb-query.c
index 686efc8..130809f 100644
--- a/couchdb-glib/couchdb-query.c
+++ b/couchdb-glib/couchdb-query.c
@@ -234,8 +234,8 @@ couchdb_query_get_query_options_string (CouchdbQuery *self)
 	while (g_hash_table_iter_next (&iter, &key, &value)) {
 		/* key, startkey and endkey must be a properly url 
 		 * encoded JSON values */
-		if (!g_strcmp0 (key, "key") || !g_strcmp0 (key, "startkey") ||
-		    !g_strcmp0 (key, "endkey")) {
+		if (g_str_equal (key, "key") || g_str_equal (key, "startkey") ||
+		    g_str_equal (key, "endkey")) {
 			char *tmp;
 
 			tmp = couchdb_uri_encode (value);



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