chiark / gitweb /
sd-daemon: fix incorrect variable access
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Mar 2014 22:54:14 +0000 (23:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Mar 2014 22:54:14 +0000 (23:54 +0100)
src/libsystemd/sd-daemon/sd-daemon.c

index 21fb346..b013438 100644 (file)
@@ -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;
         }