The conf-parser machinery already removed whitespace before and after "=", no
need to repeat this step.
The test is adjusted to pass. It was testing an code path that doesn't happen
normally, no point in doing that.
assert(e);
e += ltype;
- rvalue += strspn(rvalue, WHITESPACE);
if (isempty(rvalue)) {
/* An empty assignment resets the list */
assert(rvalue);
assert(s);
- rvalue += strspn(rvalue, WHITESPACE);
if (isempty(rvalue)) {
s->timeout_abort_set = false;
return 0;
assert(rvalue);
assert(timeout_usec);
- rvalue += strspn(rvalue, WHITESPACE);
if (isempty(rvalue)) {
*timeout_usec = false;
return 0;
"[Section]\n"
"[Section]\n"
"setting1=1\n"
- "setting1=2\n"
- "setting1=1\n", /* repeated settings */
+ "setting1= 2 \t\n"
+ "setting1= 1\n", /* repeated settings */
"[Section]\n"
"[Section]\n"
log_info("/* no command, whitespace only, reset */");
r = config_parse_exec(NULL, "fake", 3, "section", 1,
- "LValue", 0, " ",
+ "LValue", 0, "",
&c, u);
assert_se(r == 0);
assert_se(c == NULL);