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:
parent
22ca87dbf2
commit
1d5d28d7fb
@ -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, "|")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user