Fossil SCM
removed a superfluous call to json_set_err() which "overwrote" the previously set error.
Commit
1615544773bd6cd6ef47bf4edbd9c18377f8d869
Parent
3d1d139a7a0f951…
1 file changed
-2
-2
| --- src/json_wiki.c | ||
| +++ src/json_wiki.c | ||
| @@ -359,11 +359,9 @@ | ||
| 359 | 359 | goto end; |
| 360 | 360 | error: |
| 361 | 361 | assert(0 != g.json.resultCode); |
| 362 | 362 | cson_value_free(listV); |
| 363 | 363 | listV = NULL; |
| 364 | - json_set_err(FSL_JSON_E_UNKNOWN, | |
| 365 | - "Error creating wiki page list."); | |
| 366 | 364 | end: |
| 367 | 365 | db_finalize(&q); |
| 368 | 366 | return listV; |
| 369 | 367 | } |
| 370 | 368 |
| --- src/json_wiki.c | |
| +++ src/json_wiki.c | |
| @@ -359,11 +359,9 @@ | |
| 359 | goto end; |
| 360 | error: |
| 361 | assert(0 != g.json.resultCode); |
| 362 | cson_value_free(listV); |
| 363 | listV = NULL; |
| 364 | json_set_err(FSL_JSON_E_UNKNOWN, |
| 365 | "Error creating wiki page list."); |
| 366 | end: |
| 367 | db_finalize(&q); |
| 368 | return listV; |
| 369 | } |
| 370 |
| --- src/json_wiki.c | |
| +++ src/json_wiki.c | |
| @@ -359,11 +359,9 @@ | |
| 359 | goto end; |
| 360 | error: |
| 361 | assert(0 != g.json.resultCode); |
| 362 | cson_value_free(listV); |
| 363 | listV = NULL; |
| 364 | end: |
| 365 | db_finalize(&q); |
| 366 | return listV; |
| 367 | } |
| 368 |