Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/tr Don't explicitly zero bss variables that are alre...



details:   https://anonhg.NetBSD.org/src/rev/a3f0e41bd510
branches:  trunk
changeset: 789199:a3f0e41bd510
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Aug 11 00:49:15 2013 +0000

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

diffstat:

 usr.bin/tr/tr.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 293a812017bb -r a3f0e41bd510 usr.bin/tr/tr.c
--- a/usr.bin/tr/tr.c   Sun Aug 11 00:48:37 2013 +0000
+++ b/usr.bin/tr/tr.c   Sun Aug 11 00:49:15 2013 +0000
@@ -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 @@
 #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 @@
        STR *str;
 
        str = str_create(whichstring, arg);
-       memset(string, 0, NCHARS * sizeof(int));
        while (next(str, &ch))
                string[ch] = 1;
        if (cflag)



Home | Main Index | Thread Index | Old Index