diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c index 4317d90b24..3f4c72826d 100644 --- a/src/shared/watchdog.c +++ b/src/shared/watchdog.c @@ -42,7 +42,7 @@ static int watchdog_set_enable(bool enable) { static int watchdog_get_timeout(void) { int sec = 0; - assert(watchdog_fd > 0); + assert(watchdog_fd >= 0); if (ioctl(watchdog_fd, WDIOC_GETTIMEOUT, &sec) < 0) return -errno;