From 167238c60da0c5b140b4bc194b6e0bd821e4323d Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sun, 27 May 2012 23:25:52 +0000 Subject: [PATCH] Fix uninitialized variable szTargetsData --- libnfc/chips/pn53x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 1a78eac..4bad8ea 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1010,7 +1010,7 @@ pn53x_initiator_select_passive_target_ext (struct nfc_device *pnd, int timeout) { uint8_t abtTargetsData[PN53x_EXTENDED_FRAME__DATA_MAX_LEN]; - size_t szTargetsData; + size_t szTargetsData = sizeof (abtTargetsData); int res = 0; if (nm.nmt == NMT_ISO14443BI || nm.nmt == NMT_ISO14443B2SR || nm.nmt == NMT_ISO14443B2CT) {