1
0
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:
Sebastien Helleu
2004-01-15 21:51:55 +00:00
parent c057937c7b
commit 0dddf86ab7
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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) */
+2 -1
View File
@@ -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) */