mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
sysctl: Don't pass null directive argument to '%s'
value pointer here is always NULL but subsequent use of that pointer with a %s format will always be NULL, printing p instead would be a valid string Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -115,7 +115,7 @@ static int parse_file(OrderedHashmap *sysctl_options, const char *path, bool ign
|
||||
|
||||
value = strchr(p, '=');
|
||||
if (!value) {
|
||||
log_error("Line is not an assignment at '%s:%u': %s", path, c, value);
|
||||
log_error("Line is not an assignment at '%s:%u': %s", path, c, p);
|
||||
|
||||
if (r == 0)
|
||||
r = -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user