Fossil SCM
moved an incorrectly placed assertion in (json wiki save).
Commit
4272d03e324ea05ea7dfad67e2d481e6db003864
Parent
53ba1f2950b825c…
1 file changed
+1
-1
+1
-1
| --- src/json_wiki.c | ||
| +++ src/json_wiki.c | ||
| @@ -300,13 +300,13 @@ | ||
| 300 | 300 | */ |
| 301 | 301 | payV = json_get_wiki_page_by_name( |
| 302 | 302 | cson_string_cstr( |
| 303 | 303 | cson_value_get_string(nameV)), |
| 304 | 304 | 0); |
| 305 | - assert( 0 != g.json.resultCode ); | |
| 306 | 305 | goto ok; |
| 307 | 306 | error: |
| 307 | + assert( 0 != g.json.resultCode ); | |
| 308 | 308 | assert( NULL == payV ); |
| 309 | 309 | ok: |
| 310 | 310 | if( emptyContent ){ |
| 311 | 311 | /* We have some potentially tricky memory ownership |
| 312 | 312 | here, which is why we handle emptyContent separately. |
| 313 | 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 | 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 |