uninitialized variable was used when ensuring mirrored vertex groups.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 1 Jun 2011 23:55:49 +0000 (23:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 1 Jun 2011 23:55:49 +0000 (23:55 +0000)
source/blender/editors/interface/interface.c
source/blender/editors/sculpt_paint/paint_vertex.c

index 68d669b..3e65e70 100644 (file)
@@ -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;
 
index 0d79fcc..c35b742 100644 (file)
@@ -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;
                                }