- Changes the condition of if statement to check whether the position is
a negative value or not.
Change-Id: I6ace6dad19e9df972188c31f21fa55d0dd9ef59c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
iter = g_list_next(iter);
}
- return 0;
+ return -1;
}
static struct app_group_context_s *__app_group_add(
app_group_h group;
app_group_node_h node;
GList *found;
- int pos = 0;
+ int pos = -1;
if (!id || !leader_id) {
LOGE("Invalid parameter");
if (before_wid > 0)
pos = __app_group_get_nth(group, before_wid);
- if (pos != 0)
+ if (pos != -1)
group->list = g_list_insert(group->list, ctx, pos);
else
group->list = g_list_append(group->list, ctx);