mirror of
https://github.com/mirror/make.git
synced 2025-01-04 01:10:26 +08:00
(construct_command_argv_internal): Notice newline inside '' string when
RESTP is non-null.
This commit is contained in:
parent
3c9e8b266a
commit
dd841ded6f
6
job.c
6
job.c
@ -1244,6 +1244,12 @@ construct_command_argv_internal (line, restp, shell, ifs)
|
|||||||
/* Inside a string, just copy any char except a closing quote. */
|
/* Inside a string, just copy any char except a closing quote. */
|
||||||
if (*p == '\'')
|
if (*p == '\'')
|
||||||
instring = 0;
|
instring = 0;
|
||||||
|
else if (*p == '\n' && restp != NULL)
|
||||||
|
{
|
||||||
|
/* End of the command line. */
|
||||||
|
*restp = p;
|
||||||
|
goto end_of_line;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
*ap++ = *p;
|
*ap++ = *p;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user