1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 06:26:36 +01:00

proper commandline args

This commit is contained in:
Jfreegman
2014-06-07 14:36:37 -04:00
parent bfa266c604
commit 8c5ac1f77d
3 changed files with 87 additions and 36 deletions

View File

@@ -178,8 +178,8 @@ int settings_load(struct user_settings *s, char *path)
if (line[0] == '#' || !line[0])
continue;
const char *key = strtok(line, ":");
const char *val = strtok(NULL, ";");
char *key = strtok(line, ":");
char *val = strtok(NULL, ";");
if (key == NULL || val == NULL)
continue;