diff options
-rw-r--r-- | usr.bin/make/str.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index 23fc835..1aa54f7 100644 --- a/usr.bin/make/str.c +++ b/usr.bin/make/str.c @@ -160,10 +160,12 @@ brk_string(char *str, int *store_argc, Boolean expand) case '"': case '\'': if (inquote) { - if (ch == inquote) - inquote = '\0'; - else + if (ch != inquote) break; + inquote = '\0'; + /* Don't miss "" or '' */ + if (!start) + start = t; } else inquote = (char) ch; if (expand) |