diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-11-01 18:34:35 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-11-01 18:36:11 +0300 |
commit | 9b8be0bc0c497d0682b439e3d10bea1f83a3d115 (patch) | |
tree | bcdf81d899e17ac6145208a3e24cbc44cce571cb /source/blender/bmesh/tools/bmesh_region_match.c | |
parent | cbf2fab9ea51ff89845a527cf14a360faabbdd38 (diff) |
Cleanup/fix from latest coverity report.
Mostly harmless things, though the 'multires' error was a real bug.
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_region_match.c')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_region_match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/tools/bmesh_region_match.c b/source/blender/bmesh/tools/bmesh_region_match.c index 050d5ae4808..4e714f8fbe9 100644 --- a/source/blender/bmesh/tools/bmesh_region_match.c +++ b/source/blender/bmesh/tools/bmesh_region_match.c @@ -874,7 +874,7 @@ static BMFace **bm_mesh_region_match_pair( const unsigned int faces_result_len = (unsigned int)BLI_ghash_size(w_dst->faces_uuid); unsigned int i; - faces_result = MEM_mallocN(sizeof(faces_result) * (faces_result_len + 1), __func__); + faces_result = MEM_mallocN(sizeof(*faces_result) * (faces_result_len + 1), __func__); GHASH_ITER_INDEX (gh_iter, w_dst->faces_uuid, i) { BMFace *f = BLI_ghashIterator_getKey(&gh_iter); faces_result[i] = f; |