projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5650ec7
)
sysctl: fix segfault
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 6 Feb 2020 10:13:11 +0000
(19:13 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 6 Feb 2020 14:49:32 +0000
(23:49 +0900)
Fixes #14801.
src/sysctl/sysctl.c
patch
|
blob
|
history
diff --git
a/src/sysctl/sysctl.c
b/src/sysctl/sysctl.c
index bbcf0c432354f875fa7b7d5ed8b37cc42acebcfd..0cdb740d21891c552ebeaa226f108cd3cd14b695 100644
(file)
--- 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;
}