summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-06 10:55:12 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-06 10:55:12 +0200
commit210df9d83595b168749a1ca3651057fc6357f22a (patch)
tree31586c5afef7da750835b20026f646093536276e
parentdc775bc5f89461c0e6808a7464bee6f8ae818499 (diff)
downloadvdr-210df9d83595b168749a1ca3651057fc6357f22a.tar.gz
vdr-210df9d83595b168749a1ca3651057fc6357f22a.tar.bz2
Fixed uninitialized variable SdWatchdog in vdr.c
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--vdr.c4
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 <fnu@yavdr.org>
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 <vdr@dachsweb.de>
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 <getopt.h>
@@ -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