1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 08:13:25 +01:00

fix segfault on unknown long option

This commit is contained in:
Jfreegman 2014-08-27 14:30:06 -04:00
parent b1c7e21ca9
commit 155e194174
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 1 deletions

View File

@ -201,7 +201,7 @@ int settings_load(struct user_settings *s, const char *patharg)
{
config_t cfg[1];
config_setting_t *setting;
const char *str;
const char *str = NULL;
/* Load default settings */
ui_defaults(s);

View File

@ -619,6 +619,7 @@ static void parse_args(int argc, char *argv[])
{"dnslist", required_argument, 0, 'r'},
{"force-tcp", no_argument, 0, 't'},
{"proxy", required_argument, 0, 'p'},
{NULL, no_argument, NULL, 0},
};
const char *opts_str = "4bdhotxc:f:n:r:p:";