From 1b54047ac34406464f5b2bae408033cfb5adc29a Mon Sep 17 00:00:00 2001 From: Thomas Ries Date: Sun, 9 May 2004 12:11:45 +0000 Subject: [PATCH] - complain about empty values in config file --- ChangeLog | 1 + src/readconf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7d5c1c..2fde2e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 0.5.6 ===== 09-May-2004: - Authentication headers: enquote Realm (linphone) + - complain about empty values in config file 02-May-2004: - better recognition of redirected incoming requests (like INVITES from sipgate.de - SIP URI points to the real wanted target but To: header only points to diff --git a/src/readconf.c b/src/readconf.c index e37e71c..33daa6f 100644 --- a/src/readconf.c +++ b/src/readconf.c @@ -211,7 +211,7 @@ static int parse_config (FILE *configfile) { DEBUGC(DBCLASS_CONFIG,"got argument:\"%s\"",ptr); num=0; - switch (configoptions[k].type) { + if (strlen(ptr)) switch (configoptions[k].type) { // // Integer4