summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index c4f6c3172..e852092e2 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -313,10 +313,7 @@ execbuiltin(LinkList args, Builtin bn)
 		*/
 		if (flags & BINF_SKIPINVALID) {
 		    char *p = arg;
-		    if (optstr)
-			while (*++p && strchr(optstr, (int) *p));
-		    else
-			p++;
+		    while (*++p && strchr(optstr, (int) *p));
 		    if (*p)
 			break;
 		}