diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-03-20 10:10:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-03-20 10:10:38 +0100 |
commit | e760b14f646004a7fe99e4561156a132a0572cdb (patch) | |
tree | e90c068eea96be4e3a98fd2f734617032e859182 /channels.c | |
parent | 86a9d179bd27177fafa0d0b5931c377e8b90e9d5 (diff) | |
download | vdr-e760b14f646004a7fe99e4561156a132a0572cdb.tar.gz vdr-e760b14f646004a7fe99e4561156a132a0572cdb.tar.bz2 |
Some fixes to avoid compiler warnings in gcc 4.0
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.35 2005/02/06 09:44:53 kls Exp $ + * $Id: channels.c 1.36 2005/03/19 15:56:38 kls Exp $ */ #include "channels.h" @@ -694,9 +694,12 @@ bool cChannel::Parse(const char *s, bool AllowNonUniqueID) char *p = strchr(vpidbuf, '+'); if (p) *p++ = 0; - sscanf(vpidbuf, "%d", &vpid); - if (p) - sscanf(p, "%d", &ppid); + if (sscanf(vpidbuf, "%d", &vpid) != 1) + return false; + if (p) { + if (sscanf(p, "%d", &ppid) != 1) + return false; + } else ppid = vpid; |