Browse code

Code tidy

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@975 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/10/07 02:21:46
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.97  2004/10/06 17:21:46  nigelhorne
21
+ * Code tidy
22
+ *
20 23
  * Revision 1.96  2004/10/05 15:46:18  nigelhorne
21 24
  * First draft of code to handle RFC1341
22 25
  *
... ...
@@ -285,7 +288,7 @@
285 285
  * uuencodebegin() no longer static
286 286
  *
287 287
  */
288
-static	char	const	rcsid[] = "$Id: message.c,v 1.96 2004/10/05 15:46:18 nigelhorne Exp $";
288
+static	char	const	rcsid[] = "$Id: message.c,v 1.97 2004/10/06 17:21:46 nigelhorne Exp $";
289 289
 
290 290
 #if HAVE_CONFIG_H
291 291
 #include "clamav-config.h"
... ...
@@ -1972,11 +1975,8 @@ decodeLine(message *m, encoding_type et, const char *line, unsigned char *buf, s
1972 1972
 		case NOENCODING:
1973 1973
 		case EIGHTBIT:
1974 1974
 		default:	/* unknown encoding type - try our best */
1975
-			if(line == NULL) {	/* empty line */
1976
-				*buf++ = '\n';
1977
-				break;
1978
-			}
1979
-			buf = (unsigned char *)strrcpy((char *)buf, line);
1975
+			if(line)	/* empty line? */
1976
+				buf = (unsigned char *)strrcpy((char *)buf, line);
1980 1977
 			/* Put the new line back in */
1981 1978
 			return (unsigned char *)strrcpy((char *)buf, "\n");
1982 1979