httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <v.j.orlikow...@gte.net>
Subject [PATCH] Warning clean-ups....
Date Fri, 15 Sep 2000 16:01:23 GMT
Nothing particularly important. Just a bunch of clean-ups of compiler
warnings.

Index: src/lib/pcre/pcre.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/pcre/pcre.c,v
retrieving revision 1.2
diff -u -d -b -r1.2 pcre.c
--- pcre.c	2000/08/20 03:21:53	1.2
+++ pcre.c	2000/09/15 15:54:19
@@ -835,7 +835,7 @@
 int prevreqchar;
 int condcount = 0;
 int subcountlits = 0;
-register int c;
+register int c = 0;
 register uschar *code = *codeptr;
 uschar *tempcode;
 const uschar *ptr = *ptrptr;
Index: src/main/http_protocol.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/main/http_protocol.c,v
retrieving revision 1.126
diff -u -d -b -r1.126 http_protocol.c
--- http_protocol.c	2000/09/14 20:43:14	1.126
+++ http_protocol.c	2000/09/15 15:54:21
@@ -1711,7 +1711,7 @@
 {
     int methnum;
     int i;
-    char **methods;
+    char **methods = NULL;
 
     /*
      * If it's one of our known methods, use the shortcut and check the
@@ -1743,7 +1743,7 @@
     int methnum;
     int i;
     const char **xmethod;
-    char **methods;
+    char **methods = NULL;
 
     /*
      * If it's one of our known methods, use the shortcut and use the
@@ -1775,7 +1775,7 @@
 				       const char *method)
 {
     int methnum;
-    char **methods;
+    char **methods = NULL;
 
     /*
      * If it's one of our known methods, use the shortcut and use the
Index: src/modules/standard/mod_include.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/modules/standard/mod_include.c,v
retrieving revision 1.56
diff -u -d -b -r1.56 mod_include.c
--- mod_include.c	2000/09/14 18:42:56	1.56
+++ mod_include.c	2000/09/15 15:54:23
@@ -338,7 +338,7 @@
 static char *get_tag(apr_pool_t *p, ap_bucket *in, char *tag, int tagbuf_len, int dodecode,
apr_off_t *offset)
 {
     ap_bucket *dptr = in;
-    const char *c;
+    const char *c = NULL;
     const char *str;
     apr_ssize_t length; 
     char *t = tag, *tag_val, term;
@@ -2267,7 +2267,7 @@
     int conditional_status;
     ap_bucket *dptr = AP_BRIGADE_FIRST(bb);
     ap_bucket *tagbuck, *dptr2;
-    ap_bucket *endsec;
+    ap_bucket *endsec = NULL;
     ap_bucket_brigade *before_tag = NULL;
     ap_bucket *hackbucket = NULL;
     int ret;

Victor
-- 
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
vjo@raleigh.ibm.com
vjo@us.ibm.com


Mime
View raw message