]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.c
CHG: "hf mf hardnested" - less printing
[proxmark3-svn] / client / util.c
index c5c7d7fe2f2fc3d019507426581c84bf43cdea64..a6ba8e81d16622d951f0e15a7684fdfa4f5ac9a9 100644 (file)
@@ -63,7 +63,10 @@ void AddLogLine(char *file, char *extData, char *c) {
        fprintf(f, "%s", extData);
        fprintf(f, "%s\n", c);
        fflush(f);
-       fclose(f);
+       if (f) {
+               fclose(f);
+               f = NULL;
+       }
 }
 
 void AddLogHex(char *fileName, char *extData, const uint8_t * data, const size_t len){
Impressum, Datenschutz