From 57b874ee6d84eaec57db88d0503f940a34a5ea36 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 21 Aug 2017 20:42:51 +0800 Subject: [PATCH] main: ignore empty lines in configuration --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0501d30..b3c043e 100755 --- a/main.cpp +++ b/main.cpp @@ -2554,7 +2554,7 @@ void load_config(char *config_file, int argc_orig, char *argv_orig[]) std::vector arguments; while(std::getline(conf_file,line)) { - if(line.at(0)=='#') + if(line==""||line.at(0)=='#') { continue; }