Fossil SCM

got rid of '... might be used initialized' warnings

stephan 2008-02-03 16:35 trunk
Commit 649dd8a6afa59ab7815dace7fb1c30d74d83a8af
2 files changed +1 -1 +1 -1
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -268,11 +268,11 @@
268268
269269
/*
270270
** Do a normal HTTP reply
271271
*/
272272
void cgi_reply(void){
273
- int total_size;
273
+ int total_size = 0;
274274
if( iReplyStatus<=0 ){
275275
iReplyStatus = 200;
276276
zReplyStatus = "OK";
277277
}
278278
279279
--- 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 @@
746746
** Figure out what the UUID is an jump to it. If there is ambiguity,
747747
** draw a page and let the user select the interpretation.
748748
*/
749749
void info_page(void){
750750
const char *zName;
751
- int rc, nName, cnt;
751
+ int rc = 0, nName, cnt;
752752
Stmt q;
753753
754754
zName = P("name");
755755
if( zName==0 ) cgi_redirect("index");
756756
nName = strlen(zName);
757757
--- 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

Keyboard Shortcuts

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