Fossil SCM

removed a superfluous call to json_set_err() which "overwrote" the previously set error.

stephan 2011-10-19 14:56 json-multitag-test
Commit 1615544773bd6cd6ef47bf4edbd9c18377f8d869
1 file changed -2
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -359,11 +359,9 @@
359359
goto end;
360360
error:
361361
assert(0 != g.json.resultCode);
362362
cson_value_free(listV);
363363
listV = NULL;
364
- json_set_err(FSL_JSON_E_UNKNOWN,
365
- "Error creating wiki page list.");
366364
end:
367365
db_finalize(&q);
368366
return listV;
369367
}
370368
--- 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

Keyboard Shortcuts

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