NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/44229: Duplicated chekc.
>Number: 44229
>Category: bin
>Synopsis: Duplicated chekc.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 13 11:30:00 +0000 2010
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Duplicated checks of space and tabs.
>How-To-Repeat:
>Fix:
diff -u -r1.78 parser.c
--- bin/sh/parser.c 17 Nov 2010 13:40:48 -0000 1.78
+++ bin/sh/parser.c 13 Dec 2010 10:59:34 -0000
@@ -814,8 +814,7 @@
startlinno = plinno;
for (;;) { /* until token or start of word found */
c = pgetc_macro();
- if (c == ' ' || c == '\t')
- continue; /* quick check for white space
first */
+
switch (c) {
case ' ': case '\t':
continue;
Home |
Main Index |
Thread Index |
Old Index