summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vdr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 34eee374..6a8ac574 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.303 2007/11/25 15:11:33 kls Exp $
+ * $Id: vdr.c 1.304 2008/01/06 11:48:14 kls Exp $
*/
#include <getopt.h>
@@ -345,7 +345,8 @@ int main(int argc, char *argv[])
while (optarg && *optarg && optarg[strlen(optarg) - 1] == '/')
optarg[strlen(optarg) - 1] = 0;
break;
- case 'w': if (isnumber(optarg)) { int t = atoi(optarg);
+ case 'w': if (isnumber(optarg)) {
+ int t = atoi(optarg);
if (t >= 0) {
WatchdogTimeout = t;
break;