mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
util: fix misuse of memcmp
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
86cb0691b7
commit
85ca9433ab
@@ -5919,7 +5919,7 @@ int shall_restore_state(void) {
|
||||
return 1;
|
||||
|
||||
FOREACH_WORD_QUOTED(w, l, line, state)
|
||||
if (l == 23 && memcmp(w, "systemd.restore_state=0", 23))
|
||||
if (l == 23 && strneq(w, "systemd.restore_state=0", 23))
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user