From 60f8afdfcce6615a7a7fbb9ff4df6b1c7c4c9962 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 24 Aug 2003 11:01:42 +0200 Subject: [PATCH] Empty values in setup.conf are no longer treated as an error --- CONTRIBUTORS | 1 + HISTORY | 2 ++ config.c | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index aee41312..4d7819db 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -559,6 +559,7 @@ R Andreas Kool for his help in keeping 'channels.conf.cable' up to date for fixing the TS to PES repacker so that it works with MPEG1 streams + for reporting a problem with empty values in setup.conf Guy Roussin for suggesting not to display channel group delimiters without text diff --git a/HISTORY b/HISTORY index 8fd6893c..1d4344cd 100644 --- a/HISTORY +++ b/HISTORY @@ -2319,3 +2319,5 @@ Video Disk Recorder Revision History - Fixed 'runvdr' to stay in the loop only if VDR returns an exit status of '1'. - Completed the Finnish OSD texts (thanks to Rolf Ahrenberg). +- Empty values in setup.conf are no longer treated as an error (thanks to Andreas + Kool for reporting this one). diff --git a/config.c b/config.c index 924a70ed..0ef2d57f 100644 --- a/config.c +++ b/config.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.115 2003/08/17 08:47:41 kls Exp $ + * $Id: config.c 1.116 2003/08/24 11:00:24 kls Exp $ */ #include "config.h" @@ -215,7 +215,7 @@ bool cSetupLine::Parse(char *s) *p = 0; char *Name = compactspace(s); char *Value = compactspace(p + 1); - if (*Name && *Value) { + if (*Name) { // value may be an empty string p = strchr(Name, '.'); if (p) { *p = 0;