add: if (log_stderr==0){ fprintf(stderr, "ERROR: reading configuration: %s\n", strerror(errno)); }
context: int cfg_parse_stream(FILE* stream){	int line;	struct cfg_line cl;	char buf[MAX_LINE_SIZE];	int ret;	line=1;	while(!feof(stream)){		if (fgets(buf, MAX_LINE_SIZE, stream)){			cfg_parse_line(buf, &cl);			switch (cl.type){				case CFG_DEF:					if ((ret=cfg_run_def(&cl))!=0){						LOG(L_CRIT, "ERROR (%d): on line %d\n", ret, line);						goto error;					}					break;				case CFG_COMMENT:				case CFG_SKIP:					break;				case CFG_ERROR:					LOG(L_CRIT, "ERROR: bad config line (%d):%s\n", line, buf);					goto error;					break;			}			line++;		}else{			if (ferror(stream)){				LOG(L_CRIT,						"ERROR: reading configuration: %s\n",						strerror(errno));				goto error;			}			break;		}	}	return 0;error:	return line;}