mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix running without config file
This commit is contained in:
parent
c96c3c4c83
commit
c94e8826fd
1 changed files with 6 additions and 1 deletions
|
|
@ -243,7 +243,12 @@ void config_file_parse(const int argc, char *argv[])
|
|||
c = malloc(sizeof(struct config_t));
|
||||
memset(c, 0, sizeof(struct config_t));
|
||||
|
||||
resolve_config_file();
|
||||
// Find config file
|
||||
if (resolve_config_file() != 0)
|
||||
{
|
||||
// None found - stop parsing
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue