main: ignore empty lines in configuration

This commit is contained in:
Peter Cai 2017-08-21 20:42:51 +08:00
parent ab0ce3ade3
commit 57b874ee6d
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F

View File

@ -2554,7 +2554,7 @@ void load_config(char *config_file, int argc_orig, char *argv_orig[])
std::vector<std::string> arguments;
while(std::getline(conf_file,line))
{
if(line.at(0)=='#')
if(line==""||line.at(0)=='#')
{
continue;
}