Browse code

fix uninitialized value warning

git-svn: trunk@3047

Török Edvin authored on 2007/05/02 05:13:27
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue May  1 22:26:00 EEST 2007 (edwin)
2
+----------------------------------
3
+  libclamav/htmlnorm.c: fix uninitialized value warning
4
+
1 5
 Tue May  1 18:13:09 BST 2007 (njh)
2 6
 ----------------------------------
3 7
   *	libclamav/mbox.c:	more phish enabling code
... ...
@@ -455,7 +455,7 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag
455 455
 {
456 456
 	int fd_tmp, tag_length, tag_arg_length, binary;
457 457
 	int retval=FALSE, escape, value = 0, hex, tag_val_length=0, table_pos, in_script=FALSE;
458
-	FILE *stream_in;
458
+	FILE *stream_in = NULL;
459 459
 	html_state state=HTML_NORM, next_state=HTML_BAD_STATE;
460 460
 	char filename[1024], tag[HTML_STR_LENGTH+1], tag_arg[HTML_STR_LENGTH+1];
461 461
 	char tag_val[HTML_STR_LENGTH+1], *tmp_file;