Module Name: src
Committed By: dholland
Date: Mon May 30 02:30:20 UTC 2016
Modified Files:
src/sys/arch/ews4800mips/stand/common: cmd.c
Log Message:
PR 51182 David Binderman: fix redundant conditional
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ews4800mips/stand/common/cmd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/ews4800mips/stand/common/cmd.c
diff -u src/sys/arch/ews4800mips/stand/common/cmd.c:1.2 src/sys/arch/ews4800mips/stand/common/cmd.c:1.3
--- src/sys/arch/ews4800mips/stand/common/cmd.c:1.2 Mon Apr 28 20:23:18 2008
+++ src/sys/arch/ews4800mips/stand/common/cmd.c Mon May 30 02:30:20 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: cmd.c,v 1.2 2008/04/28 20:23:18 martin Exp $ */
+/* $NetBSD: cmd.c,v 1.3 2016/05/30 02:30:20 dholland Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@ cmd_exec(const char *buf)
if (*p == ' ') {
*p = 0;
sep = 1;
- } else if (sep && (*p != ' ' || *p == '\0')) {
+ } else if (sep) {
sep = 0;
argp[argc++] = p;
}