X Tutup
Skip to content

Commit db99904

Browse files
committed
sysctl: fix segfault
Fixes systemd#14801.
1 parent 5650ec7 commit db99904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sysctl/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static int parse_file(OrderedHashmap **sysctl_options, const char *path, bool ig
257257

258258
existing = ordered_hashmap_get(*sysctl_options, p);
259259
if (existing) {
260-
if (streq(value, existing->value)) {
260+
if (streq_ptr(value, existing->value)) {
261261
existing->ignore_failure = existing->ignore_failure || ignore_failure;
262262
continue;
263263
}

0 commit comments

Comments
 (0)
X Tutup