httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r729566 - /httpd/sandbox/mod_mbox-3/module-2.0/mod_mbox_mime.c
Date Fri, 26 Dec 2008 23:35:01 GMT
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;
 



Mime
View raw message