diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 7e6fef27..68b4bd71 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2987,19 +2987,19 @@ command_docgen(void) cmds = g_list_insert_sorted(cmds, (gpointer)pcmd, (GCompareFunc)_cmp_command); } - FILE* toc_fragment = fopen("toc_fragment.html", "w"); - if (!toc_fragment) { - log_error("command_docgen(): unable to open toc_fragment.html for writing: %s", g_strerror(errno)); - g_list_free(cmds); - return; - } - FILE* main_fragment = fopen("main_fragment.html", "w"); - if (!main_fragment) { - log_error("command_docgen(): unable to open main_fragment.html for writing: %s", g_strerror(errno)); - fclose(toc_fragment); - g_list_free(cmds); - return; - } + FILE* toc_fragment = fopen("toc_fragment.html", "w"); + if (!toc_fragment) { + log_error("command_docgen(): unable to open toc_fragment.html for writing: %s", g_strerror(errno)); + g_list_free(cmds); + return; + } + FILE* main_fragment = fopen("main_fragment.html", "w"); + if (!main_fragment) { + log_error("command_docgen(): unable to open main_fragment.html for writing: %s", g_strerror(errno)); + fclose(toc_fragment); + g_list_free(cmds); + return; + } fputs("