Message ID | 20200923145049.843559624@goodmis.org |
---|---|
State | New |
Headers | show |
Series | [for-linus,1/4] lib/bootconfig: Fix a bug of breaking existing tree nodes | expand |
diff --git a/lib/bootconfig.c b/lib/bootconfig.c index b44bba0f1583..649ed44f199c 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -494,8 +494,8 @@ static int __init __xbc_parse_value(char **__v, char **__n) break; } if (strchr(",;\n#}", c)) { - v = strim(v); *p++ = '\0'; + v = strim(v); break; } }