diff options
author | Yuxuan Shui <yshuiv7@gmail.com> | 2013-12-05 22:30:04 +0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-05 22:49:02 -0500 |
commit | 85ca9433abc00d8cc641fceafe9e87dfcd92af4a (patch) | |
tree | 24ab7a063af7f07ebf0857608f36bd88854d142b /src | |
parent | 86cb0691b71873c6fe30a103dc98153e2d9ab507 (diff) |
util: fix misuse of memcmp
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index efd3468fb6..c71293106f 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -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; |