[couchdb-glib] Fixed g_strcmp0 comparison
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [couchdb-glib] Fixed g_strcmp0 comparison
- Date: Wed, 9 Jun 2010 08:54:58 +0000 (UTC)
commit 3abff03d96573944de52bdb282502af8d2d5a96b
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Wed Jun 9 10:49:33 2010 +0200
Fixed g_strcmp0 comparison
desktopcouch-glib/desktopcouch-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/desktopcouch-glib/desktopcouch-session.c b/desktopcouch-glib/desktopcouch-session.c
index 335b92d..7c85c94 100644
--- a/desktopcouch-glib/desktopcouch-session.c
+++ b/desktopcouch-glib/desktopcouch-session.c
@@ -44,7 +44,7 @@ desktopcouch_database_create_document_from_json (CouchdbDatabase *database, gpoi
if (json_object_has_member (json_object, "record_type")) {
if (g_strcmp0 (json_object_get_string_member (json_object, "record_type"),
- DESKTOPCOUCH_RECORD_TYPE_CONTACT))
+ DESKTOPCOUCH_RECORD_TYPE_CONTACT) == 0)
document = desktopcouch_document_contact_new ();
else
document = desktopcouch_document_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]