1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 04:23:06 +00:00

Test filehandle before closing it

This commit is contained in:
jsteube 2016-09-13 11:33:39 +02:00
parent c808d2a998
commit 66418b7a35

View File

@ -32,6 +32,8 @@ int debugfile_init (debugfile_ctx_t *debugfile_ctx, const uint debug_mode, const
void debugfile_destroy (debugfile_ctx_t *debugfile_ctx)
{
if (debugfile_ctx->fp == NULL) return;
fclose (debugfile_ctx->fp);
}