diff --git a/client/cmdlfnedap.c b/client/cmdlfnedap.c
index f15813f10..048c5eea9 100644
--- a/client/cmdlfnedap.c
+++ b/client/cmdlfnedap.c
@@ -83,7 +83,8 @@ int CmdFSKdemodNedap(const char *Cmd) {
 		if (g_debugMode) PrintAndLog("Error NEDAP: ASKbiphaseDemod failed");
 		return 0;
 	}
-	size_t size = DemodBufferLen;
+	
+	size = DemodBufferLen;
 
 	int idx = NedapDemod(BitStream, &size);
 	if (idx < 0){