tools/mkconfig: Handle string with escape character correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3847539f3d
commit
e81182df14
@ -106,7 +106,7 @@ static char *find_value_end(char *ptr)
|
||||
{
|
||||
if (*ptr == '"')
|
||||
{
|
||||
do ptr++; while (*ptr && *ptr != '"');
|
||||
do ptr++; while (*ptr && (*ptr != '"' || *(ptr - 1) == '\\'));
|
||||
if (*ptr) ptr++;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user