summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index 6a98bf69..e0b11633 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 2.14 2011/04/29 14:51:14 kls Exp $
+ * $Id: tools.c 2.15 2011/07/31 13:19:28 kls Exp $
*/
#include "tools.h"
@@ -261,7 +261,7 @@ int numdigits(int n)
bool isnumber(const char *s)
{
- if (!*s)
+ if (!s || !*s)
return false;
do {
if (!isdigit(*s))