1b9302
diff --git a/src/tools/opensc-explorer.c b/src/tools/opensc-explorer.c
1b9302
index d251495c..e48f3189 100644
1b9302
--- a/src/tools/opensc-explorer.c
1b9302
+++ b/src/tools/opensc-explorer.c
1b9302
@@ -2030,9 +2030,9 @@ static int do_put_data(int argc, char **argv)
1b9302
 static int do_apdu(int argc, char **argv)
1b9302
 {
1b9302
 	sc_apdu_t apdu;
1b9302
-	u8 buf[SC_MAX_EXT_APDU_BUFFER_SIZE];
1b9302
+	u8 buf[SC_MAX_EXT_APDU_BUFFER_SIZE] = {0};
1b9302
 	u8 rbuf[SC_MAX_EXT_APDU_BUFFER_SIZE];
1b9302
-	size_t len, i;
1b9302
+	size_t len = 0, i;
1b9302
 	int r;
1b9302
 
1b9302
 	if (argc < 1)