From 210df9d83595b168749a1ca3651057fc6357f22a Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 6 Jun 2017 10:55:12 +0200 Subject: [PATCH] Fixed uninitialized variable SdWatchdog in vdr.c --- CONTRIBUTORS | 1 + HISTORY | 1 + vdr.c | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 6e228afe..dd4e6af5 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3030,6 +3030,7 @@ Frank Neumann is currently assigned to for reporting a problem with the default return value of cEpgHandler::BeginSegmentTransfer() in derived classes that don't implement this function + for reporting uninitialized variable SdWatchdog in vdr.c Gerald Dachs for reporting a problem with checking for minimum line length of 21 characters in diff --git a/HISTORY b/HISTORY index ce46e793..bf4d62e1 100644 --- a/HISTORY +++ b/HISTORY @@ -9107,3 +9107,4 @@ Video Disk Recorder Revision History - Fixed false positives when checking the locking sequence, in case of nested locks within the same thread. +- Fixed uninitialized variable SdWatchdog in vdr.c (reported by Frank Neumann). diff --git a/vdr.c b/vdr.c index 4b424683..fe2a7297 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 4.16 2017/05/29 11:30:27 kls Exp $ + * $Id: vdr.c 4.17 2017/06/06 10:53:44 kls Exp $ */ #include @@ -239,7 +239,7 @@ int main(int argc, char *argv[]) VdrUser = VDR_USER; #endif #ifdef SDNOTIFY - time_t SdWatchdog; + time_t SdWatchdog = 0; int SdWatchdogTimeout = 0; #endif