mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Fixed crash when config file can not be created
This commit is contained in:
@@ -410,7 +410,8 @@ main (int argc, char *argv[])
|
||||
case 0: /* config file OK */
|
||||
break;
|
||||
case -1: /* config file not found */
|
||||
config_create_default ();
|
||||
if (config_create_default () < 0)
|
||||
return 1;
|
||||
config_read ();
|
||||
break;
|
||||
default: /* other error (fatal) */
|
||||
|
||||
@@ -410,7 +410,8 @@ main (int argc, char *argv[])
|
||||
case 0: /* config file OK */
|
||||
break;
|
||||
case -1: /* config file not found */
|
||||
config_create_default ();
|
||||
if (config_create_default () < 0)
|
||||
return 1;
|
||||
config_read ();
|
||||
break;
|
||||
default: /* other error (fatal) */
|
||||
|
||||
Reference in New Issue
Block a user