git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@201 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/01/25 02:47:00... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Jan 24 17:45:40 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: Removed (incorrect) warning about uninitialised variable |
|
4 |
+ |
|
1 | 5 |
Fri Jan 23 12:12:30 CET 2004 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav: added support for OLE2 / VBA streams scanning (!!), based on |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.34 2004/01/24 17:43:37 nigelhorne |
|
21 |
+ * Removed (incorrect) warning about uninitialised variable |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.33 2004/01/23 10:38:22 nigelhorne |
21 | 24 |
* Fixed memory leak in handling some multipart messages |
22 | 25 |
* |
... | ... |
@@ -90,7 +93,7 @@ |
90 | 90 |
* Compilable under SCO; removed duplicate code with message.c |
91 | 91 |
* |
92 | 92 |
*/ |
93 |
-static char const rcsid[] = "$Id: mbox.c,v 1.33 2004/01/23 10:38:22 nigelhorne Exp $"; |
|
93 |
+static char const rcsid[] = "$Id: mbox.c,v 1.34 2004/01/24 17:43:37 nigelhorne Exp $"; |
|
94 | 94 |
|
95 | 95 |
#ifndef CL_DEBUG |
96 | 96 |
/*#define NDEBUG /* map CLAMAV debug onto standard */ |
... | ... |
@@ -487,7 +490,7 @@ static int /* success or fail */ |
487 | 487 |
parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, const char *dir, table_t *rfc821Table, table_t *subtypeTable) |
488 | 488 |
{ |
489 | 489 |
message *messages[MAXALTERNATIVE]; |
490 |
- int inhead, inMimeHead, i, rc, htmltextPart, multiparts = 0; |
|
490 |
+ int inhead, inMimeHead, i, rc = 1, htmltextPart, multiparts = 0; |
|
491 | 491 |
text *aText; |
492 | 492 |
blob *blobList[MAX_ATTACHMENTS], **blobs; |
493 | 493 |
const char *cptr; |
... | ... |
@@ -1129,7 +1132,6 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con |
1129 | 1129 |
} |
1130 | 1130 |
|
1131 | 1131 |
cli_dbgmsg("%d attachments found\n", nBlobs); |
1132 |
- rc = 1; |
|
1133 | 1132 |
|
1134 | 1133 |
if(nBlobs == 0) { |
1135 | 1134 |
blob *b; |