The pointer was not initialized, so it had random value.
Change-Id: I57e2fa2c176ff208682e5f41bf135c6c25ff4dde
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);