diff options
Diffstat (limited to 'common/fastboot.c')
-rw-r--r-- | common/fastboot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/fastboot.c b/common/fastboot.c index 1b6dc28d8e..10b4ccf716 100644 --- a/common/fastboot.c +++ b/common/fastboot.c @@ -823,14 +823,12 @@ static void cb_oem_setenv(struct fastboot *fb, const char *cmd) pr_debug("%s: \"%s\"\n", __func__, cmd); - value = strchr(var, '='); + value = parse_assignment(var); if (!value) { ret = -EINVAL; goto out; } - *value++ = 0; - ret = setenv(var, value); if (ret) goto out; |