From: Pawel Andruszkiewicz Date: Thu, 30 Apr 2015 07:40:04 +0000 (+0200) Subject: [Contact] Added initialization of a variable. X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92609e34db8c6bd9bc36a574cc6f843280f585d1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Contact] Added initialization of a variable. Change-Id: I57562e2d1198f45157ecef78bd64fd6d07c870dc --- 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) {