X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/046fd7660898dfc48ea917a3cab5448d292f144e..d26849d4aec0064880f2ab31c756cc1ef4f134f5:/client/mifarehost.c diff --git a/client/mifarehost.c b/client/mifarehost.c index 873213d1..d754b06b 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -356,10 +356,7 @@ int loadTraceCard(uint8_t *tuid) { FillFileNameByUID(traceFileName, tuid, ".eml", 7); f = fopen(traceFileName, "r"); - if (!f) { - fclose(f); - return 1; - } + if (!f) return 1; blockNum = 0; @@ -396,10 +393,7 @@ int saveTraceCard(void) { if ((!strlen(traceFileName)) || (isTraceCardEmpty())) return 0; f = fopen(traceFileName, "w+"); - if ( !f ) { - fclose(f); - return 1; - } + if ( !f ) return 1; for (int i = 0; i < 64; i++) { // blocks for (int j = 0; j < 16; j++) // bytes