[Contact] Added initialization of a variable.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 30 Apr 2015 07:40:04 +0000 (09:40 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 30 Apr 2015 07:54:52 +0000 (16:54 +0900)
Change-Id: I57562e2d1198f45157ecef78bd64fd6d07c870dc

src/contact/addressbook.cc

index 5b8278b..dda7893 100644 (file)
@@ -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) {