chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-daemon: fix incorrect variable access
[elogind.git]
/
src
/
libsystemd
/
sd-daemon
/
sd-daemon.c
diff --git
a/src/libsystemd/sd-daemon/sd-daemon.c
b/src/libsystemd/sd-daemon/sd-daemon.c
index 21fb346bf821829297a6ebcf3ed11b927d0917cc..b013438de92524b18768976576d8c91a2a294a05 100644
(file)
--- a/
src/libsystemd/sd-daemon/sd-daemon.c
+++ b/
src/libsystemd/sd-daemon/sd-daemon.c
@@
-517,7
+517,7
@@
_public_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) {
r = -errno;
goto finish;
}
r = -errno;
goto finish;
}
- if (!p || p == e || *p || l <= 0) {
+ if (!p || p == e || *p || l
l
<= 0) {
r = -EINVAL;
goto finish;
}
r = -EINVAL;
goto finish;
}