X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/046fd7660898dfc48ea917a3cab5448d292f144e..0a0d9a582816e7e9dd3c19baafe4d551991db40c:/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