Browse Source

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

nfactor-troky
Con Kolivas 11 years ago
parent
commit
1d5d28d7fb
  1. 3
      cgminer.c

3
cgminer.c

@ -1333,6 +1333,9 @@ static char *parse_config(json_t *config, bool fileconf) @@ -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…
Cancel
Save