From 92609e34db8c6bd9bc36a574cc6f843280f585d1 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Thu, 30 Apr 2015 09:40:04 +0200 Subject: [PATCH] [Contact] Added initialization of a variable. Change-Id: I57562e2d1198f45157ecef78bd64fd6d07c870dc --- src/contact/addressbook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contact/addressbook.cc b/src/contact/addressbook.cc index 5b8278b9..dda78935 100644 --- a/src/contact/addressbook.cc +++ b/src/contact/addressbook.cc @@ -258,7 +258,7 @@ PlatformResult AddressBookAddBatch(const JsonObject& args, JsonArray& out) { } } - int* ids; + int* ids = nullptr; int count = 0; error_code = contacts_db_insert_records(*contacts_list_ptr, &ids, &count); if (CONTACTS_ERROR_NONE != error_code) { -- 2.34.1