1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

Skip dissecting opt->names in parse_config if it doesn't exist.

This commit is contained in:
Con Kolivas 2013-08-31 21:36:15 +10:00
parent 22ca87dbf2
commit 1d5d28d7fb

View File

@ -1333,6 +1333,9 @@ static char *parse_config(json_t *config, bool fileconf)
/* We don't handle subtables. */
assert(!(opt->type & OPT_SUBTABLE));
if (!opt->names)
continue;
/* Pull apart the option name(s). */
name = strdup(opt->names);
for (p = strtok(name, "|"); p; p = strtok(NULL, "|")) {