projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86cb069
)
util: fix misuse of memcmp
author
Yuxuan Shui
<yshuiv7@gmail.com>
Thu, 5 Dec 2013 14:30:04 +0000
(22:30 +0800)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 6 Dec 2013 03:49:02 +0000
(22:49 -0500)
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index
efd3468
..
c712931
100644
(file)
--- 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;