]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/BigBuf.c
FIX: Coverity Scans, z_stream.opaque not initialized, use Z_NULL;
[proxmark3-svn] / armsrc / BigBuf.c
index 3499d7c76b7221854e274a14e637f4c31c347f51..f3f23ddc9fe40b56004c1fe27e93fce17b1900ec 100644 (file)
@@ -50,8 +50,14 @@ uint8_t *BigBuf_get_EM_addr(void)
 
 // clear ALL of BigBuf
 void BigBuf_Clear(void)
+{
+       BigBuf_Clear_ext(true);
+}
+// clear ALL of BigBuf
+void BigBuf_Clear_ext(bool verbose)
 {
        memset(BigBuf,0,BIGBUF_SIZE);
+       if (verbose) 
        Dbprintf("Buffer cleared (%i bytes)",BIGBUF_SIZE);
 }
 
@@ -178,7 +184,7 @@ bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_
        traceLen += iLen;
 
        // parity bytes
-       if (iLen != 0) {
+       if (num_paritybytes != 0) {
                if (parity != NULL) {
                        memcpy(trace + traceLen, parity, num_paritybytes);
                } else {
Impressum, Datenschutz