[Opensrf-commits] r1628 - branches/rel_1_0/src/libopensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Jan 17 11:37:16 EST 2009
Author: miker
Date: 2009-01-17 11:37:13 -0500 (Sat, 17 Jan 2009)
New Revision: 1628
Modified:
branches/rel_1_0/src/libopensrf/osrf_message.c
Log:
more explicit "is it NULL" test
Modified: branches/rel_1_0/src/libopensrf/osrf_message.c
===================================================================
--- branches/rel_1_0/src/libopensrf/osrf_message.c 2009-01-15 02:05:24 UTC (rev 1627)
+++ branches/rel_1_0/src/libopensrf/osrf_message.c 2009-01-17 16:37:13 UTC (rev 1628)
@@ -311,7 +311,8 @@
tmp = jsonObjectGetKeyConst(message, "locale");
- if(tmp && (new_msg->sender_locale = jsonObjectToSimpleString(tmp))) {
+ if(tmp && tmp->type != JSON_NULL) {
+ new_msg->sender_locale = jsonObjectToSimpleString(tmp);
current_locale = strdup( new_msg->sender_locale );
} else {
current_locale = NULL;
More information about the opensrf-commits
mailing list