From: Anna Niznik Date: Tue, 7 Jul 2015 14:05:11 +0000 (+0200) Subject: nullptr initialization in security_registration X-Git-Tag: accepted/tizen/mobile/20150814.112914~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58fbc88eb8ba097c9352fd88858786e1e44ce0f7;p=platform%2Fcore%2Fappfw%2Fapp-installers.git nullptr initialization in security_registration The pointer was not initialized, so it had random value. Change-Id: I57e2fa2c176ff208682e5f41bf135c6c25ff4dde --- diff --git a/src/common/security_registration.cc b/src/common/security_registration.cc index a00463f..054b1bd 100644 --- a/src/common/security_registration.cc +++ b/src/common/security_registration.cc @@ -45,7 +45,7 @@ bool PrepareRequest(const std::string& app_id, const std::string& pkg_id, privileges_x *privileges = nullptr; PKGMGR_LIST_MOVE_NODE_TO_HEAD(manifest->privileges, privileges); for (; privileges != nullptr; privileges = privileges->next) { - privilege_x* priv; + privilege_x* priv = nullptr; PKGMGR_LIST_MOVE_NODE_TO_HEAD(privileges->privilege, priv); for (; priv != nullptr; priv = priv->next) { security_manager_app_inst_req_add_privilege(req, priv->text);