commit - a0c23862a7804dbba0e030bd78bf05ed4d1ffdfe
commit + 75e58d893ea728a250b35dff13d82123aaabc9f0
blob - 645aee63addc029fccb841ae1421a6184d3e0877
blob + 49ec87a86c055c8ed01ee091298ec92fa9dd8973
--- gotwebd/parse.y
+++ gotwebd/parse.y
gotwebd = env;
file = newfile(filename, 0);
- if (file == NULL) {
- add_default_server();
- sockets_parse_sockets(env);
- /* just return, as we don't require a conf file */
- return (0);
+ if (file != NULL) {
+ /* we don't require a config file */
+ yyparse();
+ errors = file->errors;
+ closefile(file);
}
-
- yyparse();
- errors = file->errors;
- closefile(file);
/* Free macros and check which have not been used. */
TAILQ_FOREACH_SAFE(sym, &symhead, entry, next) {