Skip to content

Commit

Permalink
Correcting print format error in config.l
Browse files Browse the repository at this point in the history
This patch corrects a format error in config.l, and a spelling error in comment.
  • Loading branch information
albert-github committed Aug 16, 2015
1 parent 625e7a1 commit 9947c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.l
Expand Up @@ -242,7 +242,7 @@ QStrList &Config::getList(const char *fileName,int num,const char *name) const
}
else if (opt->kind()!=ConfigOption::O_List)
{
config_err("%d<%d>: Internal error: Requested option %s not of list type!\n",fileName,num,name);
config_err("%s<%d>: Internal error: Requested option %s not of list type!\n",fileName,num,name);
exit(1);
}
return *((ConfigList *)opt)->valueRef();
Expand Down Expand Up @@ -1077,7 +1077,7 @@ void Config::checkFileName(const char *optionName)
(val=="no" || val=="false" || val=="0" || val=="none"))
{
config_err("file name expected for option %s, got %s instead. Ignoring...\n",optionName,s.data());
s=""; // note tihe use of &s above: this will change the option value!
s=""; // note the use of &s above: this will change the option value!
}
}

Expand Down

0 comments on commit 9947c11

Please sign in to comment.