summaryrefslogtreecommitdiff
path: root/usr.bin/make/str.c
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
commit5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch)
treee779b5a6edddbb949b7990751b12d6f25304ba86 /usr.bin/make/str.c
parenta16f65c7d117419bd266c28a1901ef129a337569 (diff)
Diffstat (limited to 'usr.bin/make/str.c')
-rw-r--r--usr.bin/make/str.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c
index bb746dcecd12..b46d187466ba 100644
--- a/usr.bin/make/str.c
+++ b/usr.bin/make/str.c
@@ -137,8 +137,14 @@ brk_string(str, store_argc)
inquote = NULL;
else
break;
- else
+ else {
inquote = ch;
+ /* Don't miss "" or '' */
+ if (start == NULL && p[1] == inquote) {
+ start = t + 1;
+ break;
+ }
+ }
continue;
case ' ':
case '\t':