2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Robustify the var_defined function -- don't crash if variable value is a

single quote.

Patch from Lewis Hyatt.


[SVN r31119]
This commit is contained in:
Vladimir Prus
2005-09-26 05:26:14 +00:00
parent 6a56419367
commit 35c8e67749

View File

@@ -121,7 +121,7 @@ var_defines( char *const* e, int preprocess )
# endif
size_t len = strlen(val + 1);
int quoted = val[1] == '"' && val[len] == '"';
int quoted = val[1] == '"' && val[len] == '"' && len > 1;
if ( quoted && preprocess )
{