diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-07-31 13:23:31 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-07-31 13:23:31 +0200 |
commit | 404124eca463c5ba8ce76b1b3ca4e9454eeee7d4 (patch) | |
tree | e60922c2e0500027f388fc267707010dd6ae4a05 /tools.c | |
parent | ba5bae0d1c643fb824d355704471b156bd184469 (diff) | |
download | vdr-404124eca463c5ba8ce76b1b3ca4e9454eeee7d4.tar.gz vdr-404124eca463c5ba8ce76b1b3ca4e9454eeee7d4.tar.bz2 |
The isnumber() function now checks the given pointer for NULL
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |