Skip to content

Commit

Permalink
without an empty path no conf should be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Nowak committed Jan 7, 2015
1 parent 6a941e3 commit ec1fd40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ int tryMain(size_t argc, const char *argv[])
global.inifilename = parse_conf_arg(argc, argv);
if (global.inifilename)
{
if (!FileName::exists(global.inifilename))
// can be empty as in -conf=
if (strlen(global.inifilename) && !FileName::exists(global.inifilename))
error(Loc(), "Config file '%s' does not exist.", global.inifilename);
}
else
Expand Down

0 comments on commit ec1fd40

Please sign in to comment.