From 8a7a973b90a3b44c1e28a9c668559221471fd30e Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 11 Aug 2013 00:49:15 +0000 Subject: [PATCH] Don't explicitly zero bss variables that are already zeroed. --- usr.bin/tr/tr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c index 349aa303cab9..328b657bc059 100644 --- a/usr.bin/tr/tr.c +++ b/usr.bin/tr/tr.c @@ -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, 1993\ #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 @@ -264,7 +264,6 @@ setup(int *string, const char *arg, int whichstring, int cflag) STR *str; str = str_create(whichstring, arg); - memset(string, 0, NCHARS * sizeof(int)); while (next(str, &ch)) string[ch] = 1; if (cflag)