Module Name:    src
Committed By:   dholland
Date:           Sun Aug 11 00:49:15 UTC 2013

Modified Files:
        src/usr.bin/tr: tr.c

Log Message:
Don't explicitly zero bss variables that are already zeroed.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/tr/tr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/tr/tr.c
diff -u src/usr.bin/tr/tr.c:1.18 src/usr.bin/tr/tr.c:1.19
--- src/usr.bin/tr/tr.c:1.18	Sun Aug 11 00:48:37 2013
+++ src/usr.bin/tr/tr.c	Sun Aug 11 00:49:15 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: tr.c,v 1.18 2013/08/11 00:48:37 dholland Exp $	*/
+/*	$NetBSD: tr.c,v 1.19 2013/08/11 00:49:15 dholland Exp $	*/
 
 /*
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
 #if 0
 static char sccsid[] = "@(#)tr.c	8.2 (Berkeley) 5/4/95";
 #endif
-__RCSID("$NetBSD: tr.c,v 1.18 2013/08/11 00:48:37 dholland Exp $");
+__RCSID("$NetBSD: tr.c,v 1.19 2013/08/11 00:49:15 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -264,7 +264,6 @@ setup(int *string, const char *arg, int 
 	STR *str;
 
 	str = str_create(whichstring, arg);
-	memset(string, 0, NCHARS * sizeof(int));
 	while (next(str, &ch))
 		string[ch] = 1;
 	if (cflag)

Reply via email to