X-Git-Url: http://git.pk910.de/?p=srvx.git;a=blobdiff_plain;f=src%2Fmodcmd.c;h=7ae19af97739b126432fa2bf6415c2e7531526a6;hp=cc298a9a0cced2bf94a08923bc9b3c89ffdd2fe9;hb=591505ef854aecb6b35c00fca9d58d54fe513eb8;hpb=8aa2683163c6e3133d717a87009b333ed6260401 diff --git a/src/modcmd.c b/src/modcmd.c index cc298a9..7ae19af 100644 --- a/src/modcmd.c +++ b/src/modcmd.c @@ -1835,15 +1835,13 @@ static MODCMD_FUNC(cmd_dump_messages) { return 0; } if ((res = setjmp(*saxdb_jmp_buf(ctx))) != 0) { - saxdb_close_context(ctx); - fclose(pf); + saxdb_close_context(ctx, 1); reply("MCMSG_MESSAGE_DUMP_FAILED", strerror(res)); return 0; } else { for (it = dict_first(lang_C->messages); it; it = iter_next(it)) saxdb_write_string(ctx, iter_key(it), iter_data(it)); - saxdb_close_context(ctx); - fclose(pf); + saxdb_close_context(ctx, 1); reply("MCMSG_MESSAGES_DUMPED", fname); return 1; }