+ len = strcspn(value, "\t =");
+ value += len;
+ value += strspn(value, "\t ");
+
+ if(*value == '=') {
+ value++;
+ value += strspn(value, "\t ");
+ }
+
+ variable[len] = '\0';
+
+ if(!*value) {
+ const char err[] = "No value for variable";
+
+ if(fname)
+ logger(DEBUG_ALWAYS, LOG_ERR, "%s `%s' on line %d while reading config file %s",
+ err, variable, lineno, fname);
+ else
+ logger(DEBUG_ALWAYS, LOG_ERR, "%s `%s' in command line option %d",
+ err, variable, lineno);
+
+ return NULL;