Browse code

Remove warning

git-svn: trunk@1954

Nigel Horne authored on 2006/05/04 17:34:02
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.295 2006/05/03 15:41:44 nigelhorne Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.296 2006/05/04 08:34:02 nigelhorne Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -1079,6 +1079,8 @@ cli_parse_mbox(const char *dir, int desc, cli_ctx *ctx)
1079 1079
 #endif
1080 1080
 
1081 1081
 	retcode = CL_SUCCESS;
1082
+	body = NULL;
1083
+
1082 1084
 	/*
1083 1085
 	 * Is it a UNIX style mbox with more than one
1084 1086
 	 * mail message, or just a single mail message?
... ...
@@ -2790,8 +2792,8 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t
2790 2790
 				break;
2791 2791
 			cli_dbgmsg("Save non mime part bounce message\n");
2792 2792
 			fileblobSetFilename(fb, dir, "bounce");
2793
-			fileblobSetCTX(fb, ctx);
2794 2793
 			fileblobAddData(fb, (unsigned char *)"Received: by clamd (bounce)\n", 28);
2794
+			fileblobSetCTX(fb, ctx);
2795 2795
 
2796 2796
 			inheader = TRUE;
2797 2797
 			topofbounce = NULL;