From c1bc230bcfa735978efc4a15034965216c64a0f4 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Mon, 11 Jan 2016 10:44:52 +0000 Subject: [PATCH] Initialize address list before returning error --- source/nRF5xSecurityManager.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/nRF5xSecurityManager.h b/source/nRF5xSecurityManager.h index 922b113..2fa7b05 100644 --- a/source/nRF5xSecurityManager.h +++ b/source/nRF5xSecurityManager.h @@ -73,6 +73,7 @@ public: ble_error_t error = createWhitelistFromBondTable(whitelistFromBondTable); if (error != BLE_ERROR_NONE) { + addresses.size = 0; return error; }