]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfem4x.c
client/cmdlfem4x.c: Fix a warning about probable uninitialized variable with gcc 4.4
[proxmark3-svn] / client / cmdlfem4x.c
index 9b40d7c05f569b4b254bc94121d8526c42dd75a0..8bb4d1091e08ed3ea463a02796d12aa66da1f1a4 100644 (file)
@@ -1,3 +1,13 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// Low frequency EM4x commands
+//-----------------------------------------------------------------------------
+
 #include <stdio.h>
 #include "proxusb.h"
 #include "ui.h"
@@ -271,6 +281,7 @@ int CmdEM4x50Read(const char *Cmd)
 
   high= low= 0;
   clock= 64;
+  memset(tmpbuff, 0, MAX_GRAPH_TRACE_LEN / 64);
 
   /* first get high and low values */
   for (i = 0; i < GraphTraceLen; i++)
Impressum, Datenschutz