string-util: imply NULL termination of strextend() argument list
The trailing NULL in the argument list is now implied (similar to what we already have in place in strjoin()).
This commit is contained in:
@@ -343,7 +343,7 @@ int config_parse(
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
||||
if (!strextend(&continuation, l, NULL)) {
|
||||
if (!strextend(&continuation, l)) {
|
||||
if (flags & CONFIG_PARSE_WARN)
|
||||
log_oom();
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user