uninitialized variable was used when ensuring mirrored vertex groups.

This commit is contained in:
Campbell Barton 2011-06-01 23:55:49 +00:00
parent 81982140b8
commit 22ca037c58
2 changed files with 2 additions and 2 deletions

@ -1668,7 +1668,7 @@ int ui_set_but_string(bContext *C, uiBut *but, const char *str)
return 0;
}
void ui_set_but_default(bContext *C, uiBut *but, short all)
void ui_set_but_default(bContext *C, uiBut *UNUSED(but), short all)
{
PointerRNA ptr;

@ -301,7 +301,7 @@ static void wpaint_mirror_vgroup_ensure(Object *ob, int *vgroup_mirror)
flip_side_name(name, defgroup->name, FALSE);
if(strcmp(name, defgroup->name) != 0) {
for (curdef= ob->defbase.first, mirrdef; curdef; curdef=curdef->next, mirrdef++) {
for (curdef= ob->defbase.first, mirrdef= 0; curdef; curdef=curdef->next, mirrdef++) {
if (!strcmp(curdef->name, name)) {
break;
}