1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 11:33:01 +01:00
This commit is contained in:
Jfreegman 2014-04-20 16:42:37 -04:00
parent 93d77fdeca
commit 9b997fbf01
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -102,9 +102,11 @@ int settings_load(struct user_settings *s, char *path)
free(user_config_dir); free(user_config_dir);
if (fp == NULL) { if (fp == NULL && !path) {
if ((fp = fopen(dflt_path, "w")) == NULL) if ((fp = fopen(dflt_path, "w")) == NULL)
return -1; return -1;
} else if (fp == NULL && path) {
return -1;
} }
char line[MAX_STR_SIZE]; char line[MAX_STR_SIZE];