[Opensrf-commits] r1091 - trunk/src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Sep 23 22:52:31 EDT 2007


Author: erickson
Date: 2007-09-23 22:43:04 -0400 (Sun, 23 Sep 2007)
New Revision: 1091

Modified:
   trunk/src/libopensrf/osrf_json_parser.c
Log:
repaired logic bug which left the parser state in the JSON_STATE_IN_KEY 
state after exiting from an empty JSON object.



Modified: trunk/src/libopensrf/osrf_json_parser.c
===================================================================
--- trunk/src/libopensrf/osrf_json_parser.c	2007-09-21 16:12:07 UTC (rev 1090)
+++ trunk/src/libopensrf/osrf_json_parser.c	2007-09-24 02:43:04 UTC (rev 1091)
@@ -428,6 +428,7 @@
 			case '}' : /* ending an object */
 				if( ctx->handler->handleEndObject) 
 					ctx->handler->handleEndObject( ctx->userData ); 
+                JSON_STATE_REMOVE(ctx, JSON_STATE_IN_KEY);
 				JSON_STATE_POP(ctx);
 				if( JSON_STATE_PEEK(ctx) == NULL )
 					JSON_STATE_SET(ctx, JSON_STATE_IS_DONE);



More information about the opensrf-commits mailing list