diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-01-22 18:17:44 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-01-22 18:17:44 +0000 |
| commit | cc7282659a9cb522b3bf71da8ee8c696e8b1882a (patch) | |
| tree | e26ca1b91ef0863a43e02fba646e4346bacf364d /usr.bin/make | |
| parent | bee2fe7236bc50719d68149951a4f952ef4f5dcd (diff) | |
Notes
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/str.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index a6fdb639ced5..23fc835d13b9 100644 --- a/usr.bin/make/str.c +++ b/usr.bin/make/str.c @@ -160,24 +160,15 @@ brk_string(char *str, int *store_argc, Boolean expand) case '"': case '\'': if (inquote) { - if (inquote == ch) + if (ch == inquote) inquote = '\0'; else break; - } else { + } else inquote = (char) ch; - /* Don't miss "" or '' */ - if (start == NULL && p[1] == inquote) { - start = t + 1; - break; - } - } - if (!expand) { - if (!start) - start = t; - *t++ = ch; - } - continue; + if (expand) + continue; + break; case ' ': case '\t': case '\n': |
