Fossil SCM
got rid of '... might be used initialized' warnings
Commit
649dd8a6afa59ab7815dace7fb1c30d74d83a8af
Parent
02a7c850b417e4c…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -268,11 +268,11 @@ | ||
| 268 | 268 | |
| 269 | 269 | /* |
| 270 | 270 | ** Do a normal HTTP reply |
| 271 | 271 | */ |
| 272 | 272 | void cgi_reply(void){ |
| 273 | - int total_size; | |
| 273 | + int total_size = 0; | |
| 274 | 274 | if( iReplyStatus<=0 ){ |
| 275 | 275 | iReplyStatus = 200; |
| 276 | 276 | zReplyStatus = "OK"; |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -268,11 +268,11 @@ | |
| 268 | |
| 269 | /* |
| 270 | ** Do a normal HTTP reply |
| 271 | */ |
| 272 | void cgi_reply(void){ |
| 273 | int total_size; |
| 274 | if( iReplyStatus<=0 ){ |
| 275 | iReplyStatus = 200; |
| 276 | zReplyStatus = "OK"; |
| 277 | } |
| 278 | |
| 279 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -268,11 +268,11 @@ | |
| 268 | |
| 269 | /* |
| 270 | ** Do a normal HTTP reply |
| 271 | */ |
| 272 | void cgi_reply(void){ |
| 273 | int total_size = 0; |
| 274 | if( iReplyStatus<=0 ){ |
| 275 | iReplyStatus = 200; |
| 276 | zReplyStatus = "OK"; |
| 277 | } |
| 278 | |
| 279 |
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -746,11 +746,11 @@ | ||
| 746 | 746 | ** Figure out what the UUID is an jump to it. If there is ambiguity, |
| 747 | 747 | ** draw a page and let the user select the interpretation. |
| 748 | 748 | */ |
| 749 | 749 | void info_page(void){ |
| 750 | 750 | const char *zName; |
| 751 | - int rc, nName, cnt; | |
| 751 | + int rc = 0, nName, cnt; | |
| 752 | 752 | Stmt q; |
| 753 | 753 | |
| 754 | 754 | zName = P("name"); |
| 755 | 755 | if( zName==0 ) cgi_redirect("index"); |
| 756 | 756 | nName = strlen(zName); |
| 757 | 757 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -746,11 +746,11 @@ | |
| 746 | ** Figure out what the UUID is an jump to it. If there is ambiguity, |
| 747 | ** draw a page and let the user select the interpretation. |
| 748 | */ |
| 749 | void info_page(void){ |
| 750 | const char *zName; |
| 751 | int rc, nName, cnt; |
| 752 | Stmt q; |
| 753 | |
| 754 | zName = P("name"); |
| 755 | if( zName==0 ) cgi_redirect("index"); |
| 756 | nName = strlen(zName); |
| 757 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -746,11 +746,11 @@ | |
| 746 | ** Figure out what the UUID is an jump to it. If there is ambiguity, |
| 747 | ** draw a page and let the user select the interpretation. |
| 748 | */ |
| 749 | void info_page(void){ |
| 750 | const char *zName; |
| 751 | int rc = 0, nName, cnt; |
| 752 | Stmt q; |
| 753 | |
| 754 | zName = P("name"); |
| 755 | if( zName==0 ) cgi_redirect("index"); |
| 756 | nName = strlen(zName); |
| 757 |