Fossil SCM

moved an incorrectly placed assertion in (json wiki save).

stephan 2012-02-12 12:41 trunk
Commit 4272d03e324ea05ea7dfad67e2d481e6db003864
1 file changed +1 -1
+1 -1
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -300,13 +300,13 @@
300300
*/
301301
payV = json_get_wiki_page_by_name(
302302
cson_string_cstr(
303303
cson_value_get_string(nameV)),
304304
0);
305
- assert( 0 != g.json.resultCode );
306305
goto ok;
307306
error:
307
+ assert( 0 != g.json.resultCode );
308308
assert( NULL == payV );
309309
ok:
310310
if( emptyContent ){
311311
/* We have some potentially tricky memory ownership
312312
here, which is why we handle emptyContent separately.
313313
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -300,13 +300,13 @@
300 */
301 payV = json_get_wiki_page_by_name(
302 cson_string_cstr(
303 cson_value_get_string(nameV)),
304 0);
305 assert( 0 != g.json.resultCode );
306 goto ok;
307 error:
 
308 assert( NULL == payV );
309 ok:
310 if( emptyContent ){
311 /* We have some potentially tricky memory ownership
312 here, which is why we handle emptyContent separately.
313
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -300,13 +300,13 @@
300 */
301 payV = json_get_wiki_page_by_name(
302 cson_string_cstr(
303 cson_value_get_string(nameV)),
304 0);
 
305 goto ok;
306 error:
307 assert( 0 != g.json.resultCode );
308 assert( NULL == payV );
309 ok:
310 if( emptyContent ){
311 /* We have some potentially tricky memory ownership
312 here, which is why we handle emptyContent separately.
313

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button