You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2008/12/27 00:35:01 UTC

svn commit: r729566 - /httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c

Author: pquerna
Date: Fri Dec 26 15:35:00 2008
New Revision: 729566

URL: http://svn.apache.org/viewvc?rev=729566&view=rev
Log:
Fix warning: 'c' may be used uninitialized in this function

Modified:
    httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c

Modified: httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c
URL: http://svn.apache.org/viewvc/httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c?rev=729566&r1=729565&r2=729566&view=diff
==============================================================================
--- httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c (original)
+++ httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c Fri Dec 26 15:35:00 2008
@@ -84,7 +84,7 @@
 	/* If available, get MIME part name */
 	tmp = ap_strstr(body, "name=");
 	if (tmp && tmp < headers_bound) {
-            char c;
+        char c = '\0';
 	    tmp += sizeof("name=") - 1;
 	    k = tmp;
 
@@ -117,7 +117,7 @@
     /* Check Content-Disposition if the match is within the headers */
     tmp = ap_strstr(body, "Content-Disposition: ");
     if (tmp && tmp < headers_bound) {
-        char c;
+        char c = '\0';
 	tmp += sizeof("Content-Disposition: ") - 1;
 	k = tmp;
 
@@ -143,7 +143,7 @@
       {
 	  tmp = ap_strstr(body, "Content-Transfer-Encoding: ");
 	  if (tmp && tmp < headers_bound) {
-              char c;
+              char c = '\0';
 	      tmp += sizeof("Content-Transfer-Encoding: ") - 1;
 	      k = tmp;