Fossil SCM

Remove unused local variable from cgi_parse_POST_JSON() to fix a compiler warning.

george 2022-02-10 00:05 trunk
Commit 96bf76a4b1cf2a7d896a385ac1424076667faebbe0a066feb74c667c7f2f1f50
1 file changed -2
-2
--- src/cgi.c
+++ src/cgi.c
@@ -1070,14 +1070,12 @@
10701070
** response is output and fossil_exit() is called (in HTTP mode exit
10711071
** code 0 is used).
10721072
*/
10731073
void cgi_parse_POST_JSON( Blob * pIn ){
10741074
cson_value * jv = NULL;
1075
- cson_parse_opt popt = cson_parse_opt_empty;
10761075
cson_parse_info pinfo = cson_parse_info_empty;
10771076
assert(g.json.gc.a && "json_bootstrap_early() was not called!");
1078
- popt.maxDepth = 15;
10791077
jv = cson_parse_Blob(pIn, &pinfo);
10801078
if( jv==NULL ){
10811079
goto invalidRequest;
10821080
}else{
10831081
json_gc_add( "POST.JSON", jv );
10841082
--- src/cgi.c
+++ src/cgi.c
@@ -1070,14 +1070,12 @@
1070 ** response is output and fossil_exit() is called (in HTTP mode exit
1071 ** code 0 is used).
1072 */
1073 void cgi_parse_POST_JSON( Blob * pIn ){
1074 cson_value * jv = NULL;
1075 cson_parse_opt popt = cson_parse_opt_empty;
1076 cson_parse_info pinfo = cson_parse_info_empty;
1077 assert(g.json.gc.a && "json_bootstrap_early() was not called!");
1078 popt.maxDepth = 15;
1079 jv = cson_parse_Blob(pIn, &pinfo);
1080 if( jv==NULL ){
1081 goto invalidRequest;
1082 }else{
1083 json_gc_add( "POST.JSON", jv );
1084
--- src/cgi.c
+++ src/cgi.c
@@ -1070,14 +1070,12 @@
1070 ** response is output and fossil_exit() is called (in HTTP mode exit
1071 ** code 0 is used).
1072 */
1073 void cgi_parse_POST_JSON( Blob * pIn ){
1074 cson_value * jv = NULL;
 
1075 cson_parse_info pinfo = cson_parse_info_empty;
1076 assert(g.json.gc.a && "json_bootstrap_early() was not called!");
 
1077 jv = cson_parse_Blob(pIn, &pinfo);
1078 if( jv==NULL ){
1079 goto invalidRequest;
1080 }else{
1081 json_gc_add( "POST.JSON", jv );
1082

Keyboard Shortcuts

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