Fossil SCM
Remove unused local variable from cgi_parse_POST_JSON() to fix a compiler warning.
Commit
96bf76a4b1cf2a7d896a385ac1424076667faebbe0a066feb74c667c7f2f1f50
Parent
f902814db6f76cc…
1 file changed
-2
-2
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -1070,14 +1070,12 @@ | ||
| 1070 | 1070 | ** response is output and fossil_exit() is called (in HTTP mode exit |
| 1071 | 1071 | ** code 0 is used). |
| 1072 | 1072 | */ |
| 1073 | 1073 | void cgi_parse_POST_JSON( Blob * pIn ){ |
| 1074 | 1074 | cson_value * jv = NULL; |
| 1075 | - cson_parse_opt popt = cson_parse_opt_empty; | |
| 1076 | 1075 | cson_parse_info pinfo = cson_parse_info_empty; |
| 1077 | 1076 | assert(g.json.gc.a && "json_bootstrap_early() was not called!"); |
| 1078 | - popt.maxDepth = 15; | |
| 1079 | 1077 | jv = cson_parse_Blob(pIn, &pinfo); |
| 1080 | 1078 | if( jv==NULL ){ |
| 1081 | 1079 | goto invalidRequest; |
| 1082 | 1080 | }else{ |
| 1083 | 1081 | json_gc_add( "POST.JSON", jv ); |
| 1084 | 1082 |
| --- 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 |