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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user