From 1d5d28d7fb1d96e7bf7f92ec6618c6993d74c3b7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 31 Aug 2013 21:36:15 +1000 Subject: [PATCH] Skip dissecting opt->names in parse_config if it doesn't exist. --- cgminer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgminer.c b/cgminer.c index 2c02bae7..eaa2cbc0 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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, "|")) {