diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-02-06 19:13:11 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-02-06 23:49:32 +0900 |
commit | db99904bc8482efe556bb010a8b203a3e60ee37f (patch) | |
tree | a8044970e088414b3026aa613710d6fe3b512318 /src | |
parent | 5650ec7a11beb18390f4db081128eb3756abf064 (diff) | |
download | systemd-db99904bc8482efe556bb010a8b203a3e60ee37f.tar.gz |
sysctl: fix segfault
Fixes #14801.
Diffstat (limited to 'src')
-rw-r--r-- | src/sysctl/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c index bbcf0c4323..0cdb740d21 100644 --- a/src/sysctl/sysctl.c +++ b/src/sysctl/sysctl.c @@ -257,7 +257,7 @@ static int parse_file(OrderedHashmap **sysctl_options, const char *path, bool ig existing = ordered_hashmap_get(*sysctl_options, p); if (existing) { - if (streq(value, existing->value)) { + if (streq_ptr(value, existing->value)) { existing->ignore_failure = existing->ignore_failure || ignore_failure; continue; } |