- Check the index first.
From patch : Fixed to allocated memory as many as deleted
Change-Id: I81f72d997645662b9f44887d8a8e70a8ac83fbbf
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
(cherry picked from commit
5061f5d9172f9fccaa1f37d228155fb8a6845a44)
return;
}
- while (g_variant_iter_loop(iter, "(i)", &buf[idx]) && idx < num) {
+ while (idx < num && g_variant_iter_loop(iter, "(i)", &buf[idx])) {
NOTIFICATION_DBG("priv id[%d]", buf[idx]);
idx++;
}