summaryrefslogtreecommitdiff
path: root/src/widget/widget_choicegroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/widget_choicegroup.c')
-rw-r--r--src/widget/widget_choicegroup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget/widget_choicegroup.c b/src/widget/widget_choicegroup.c
index 1045f81..5173164 100644
--- a/src/widget/widget_choicegroup.c
+++ b/src/widget/widget_choicegroup.c
@@ -132,15 +132,15 @@ void eventWidgetChoicegroup(widget_t * widget)
void destroyWidgetChoicegroup(widget_t * widget)
{
widget_choicegroup_t *p;
- int index;
+ int my_index;
assert(widget != NULL);
assert(widget->type == WIDGET_TYPE_CHOICE);
p = (widget_choicegroup_t *) widget->private_data;
- index = searchListItem(p->list, widget);
- assert(index != -1);
- delList(p->list, index);
+ my_index = searchListItem(p->list, widget);
+ assert(my_index != -1);
+ delList(p->list, my_index);
free(p);
destroyWidget(widget);