aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-01-25 12:28:36 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-01-25 12:28:36 +0000
commita59f8cc52c3425f8195320c9ec30418f00e59001 (patch)
tree1da79c22bbd6d71d8529ad1ce1432a5ffd2a1bfa /usr.bin/make
parentf11986fab265b46f102c6dab6adc40c2a6342128 (diff)
Notes
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/str.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c
index 23fc835d13b9..1aa54f78477c 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)