etch-a-ton: fix uninitialized memory use
authorCampbell Barton <ideasman42@gmail.com>
Tue, 17 Feb 2015 05:48:53 +0000 (16:48 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 17 Feb 2015 05:48:53 +0000 (16:48 +1100)
source/blender/blenkernel/intern/sketch.c

index da5dd76681d2e99fa8e4877614aa3b05dc7cdf4f..f9c5e8fb07df37ad29071b832ff4e492c24a895e 100644 (file)
@@ -81,6 +81,10 @@ void sk_initPoint(SK_Point *pt, SK_DrawData *dd, const float no[3])
        }
        pt->p2d[0] = dd->mval[0];
        pt->p2d[1] = dd->mval[1];
+
+       pt->size = 0.0f;
+       pt->type = PT_CONTINUOUS;
+       pt->mode = PT_SNAP;
        /* more init code here */
 }