diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-12 10:53:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-12 10:53:47 +0400 |
commit | aedd4af57e5777dd32585560980f4661ec4d491d (patch) | |
tree | 81d7514200d498b01ef621c83052cf5f42aac84f /source/blender/bmesh/operators | |
parent | 0873cbaed5aea31f3fc8b16dacecb2d332c9b6f5 (diff) |
code cleanup/bugfix uninitialized values
- edgebisect bmesh operator used uninialized beauty field.
- BLI_join_dirfile could read from before the string bounds when passed an empty dir string.
- pransform could use an uninitialized projected coordinate (unlikely but possible)
- RNA_property_path_from_ID_check would compare against an uninitialized pointer when the path wasn't found.
also have bmesh walker use BM_edge_other_vert() utility function.
Diffstat (limited to 'source/blender/bmesh/operators')
-rw-r--r-- | source/blender/bmesh/operators/bmo_subdivide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_subdivide.c b/source/blender/bmesh/operators/bmo_subdivide.c index 9a6d9e7b836..24f9c1e9937 100644 --- a/source/blender/bmesh/operators/bmo_subdivide.c +++ b/source/blender/bmesh/operators/bmo_subdivide.c @@ -1080,10 +1080,10 @@ void bmo_edgebisect_exec(BMesh *bm, BMOperator *op) { BMOIter siter; BMEdge *e; - SubDParams params; + SubDParams params = {0}; int skey; - params.numcuts = BMO_slot_get(op, "numcuts")->data.i; + params.numcuts = BMO_slot_int_get(op, "numcuts"); params.op = op; BM_data_layer_add(bm, &bm->vdata, CD_SHAPEKEY); |