commit - 00862f7f5b5dddd0fa00b4b5c7e2827fdda53f99
commit + 6e5b538555a0da104cdce0480a721abca02f58b1
blob - 4c081b06b19f4927f374ee0ed69e3f67cd69e416
blob + b0f3611d62197317b09162c820b05d4b23c3557e
--- 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) {