Browse Source

Merge pull request #845 from trapexit/configfile

config: fix invalid error check when parsing config file
pull/851/head 2.32.0
trapexit 4 years ago
committed by GitHub
parent
commit
2e34c7598a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/option_parser.cpp

2
src/option_parser.cpp

@ -129,7 +129,7 @@ namespace l
else else
{ {
l::read_config(data_,is); l::read_config(data_,is);
if(is.fail())
if(!is.eof())
data_->errs->push_back("failure reading config file"); data_->errs->push_back("failure reading config file");
is.close(); is.close();
} }

Loading…
Cancel
Save