mirror of
https://github.com/mirror/make.git
synced 2026-09-01 04:08:10 +08:00
[SV 45049] Check for '$' being the last character in a string.
* expand.c (variable_expand_string): Add a single '$' if '$' ends the string. * read.c (find_char_unquote, get_next_mword): Stop if '$' ends the string. * variable.c (parse_variable_definition): Ditto.
This commit is contained in:
@@ -1445,6 +1445,8 @@ parse_variable_definition (const char *p, struct variable *var)
|
||||
closeparen = ')';
|
||||
else if (c == '{')
|
||||
closeparen = '}';
|
||||
else if (c == '\0')
|
||||
return NULL;
|
||||
else
|
||||
/* '$$' or '$X'. Either way, nothing special to do here. */
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user