Fixed uninitialized variable SdWatchdog in vdr.c

This commit is contained in:
Klaus Schmidinger 2017-06-06 10:55:12 +02:00
parent dc775bc5f8
commit 210df9d835
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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).

4
vdr.c
View File

@ -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