summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-daemon/sd-daemon.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-24 23:54:14 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-24 23:54:14 +0100
commit56dc9aec21ab23f76fadf45585adf88e71aa8078 (patch)
tree12d9b4ebce83f496db7377915145adbc8c3d200d /src/libsystemd/sd-daemon/sd-daemon.c
parentac1a87b9f2d085ef1f976a79042fe8797da9b329 (diff)
sd-daemon: fix incorrect variable access
Diffstat (limited to 'src/libsystemd/sd-daemon/sd-daemon.c')
-rw-r--r--src/libsystemd/sd-daemon/sd-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-daemon/sd-daemon.c b/src/libsystemd/sd-daemon/sd-daemon.c
index 21fb346bf8..b013438de9 100644
--- 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;
}
- if (!p || p == e || *p || l <= 0) {
+ if (!p || p == e || *p || ll <= 0) {
r = -EINVAL;
goto finish;
}