From 356118324f7cde276f393162fca54040f8c67f04 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 5 Jan 2018 17:12:06 +0100 Subject: [PATCH] Don't warn about empty lines in invitation files. --- src/invitation.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/invitation.c b/src/invitation.c index d6f00a5..5dc8c63 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -769,13 +769,19 @@ make_names: l[len] = 0; + // Ignore lines with empty variable names + if(!*l) { + continue; + } + // Is it a Name? - if(!strcasecmp(l, "Name")) + if(!strcasecmp(l, "Name")) { if(strcmp(value, name)) { break; } else { continue; - } else if(!strcasecmp(l, "NetName")) { + } + } else if(!strcasecmp(l, "NetName")) { continue; } -- 2.25.1