mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-15 12:29:35 +00:00
Test filehandle before closing it
This commit is contained in:
parent
c808d2a998
commit
66418b7a35
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user