tools/env: allow equal sign as key value separation
Treat the first equal sign as a key/value separation too. This makes the script files compatible with mkenvimage input file format. It won't support variables with equal signs anymore, but this seems not really like a loss. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
This commit is contained in:
parent
b3f4070340
commit
cd655514aa
2
tools/env/fw_env.c
vendored
2
tools/env/fw_env.c
vendored
@ -357,7 +357,7 @@ static int get_config (char *);
|
|||||||
static char *skip_chars(char *s)
|
static char *skip_chars(char *s)
|
||||||
{
|
{
|
||||||
for (; *s != '\0'; s++) {
|
for (; *s != '\0'; s++) {
|
||||||
if (isblank(*s))
|
if (isblank(*s) || *s == '=')
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user