summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index 68bfb7e4..a6bc80b1 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.73 2002/11/09 15:33:47 kls Exp $
+ * $Id: tools.c 1.74 2002/11/24 15:47:02 kls Exp $
*/
#include "tools.h"
@@ -235,6 +235,8 @@ void delay_ms(int ms)
bool isnumber(const char *s)
{
+ if (!*s)
+ return false;
while (*s) {
if (!isdigit(*s))
return false;