[Bf-blender-cvs] [ffa29194bbe] master: Fix use of uninitialized variable in undo system.

Brecht Van Lommel noreply at git.blender.org
Wed Mar 13 13:51:22 CET 2019


Commit: ffa29194bbe71147871cf2948ae0f1eea3a4558b
Author: Brecht Van Lommel
Date:   Wed Mar 13 13:47:47 2019 +0100
Branches: master
https://developer.blender.org/rBffa29194bbe71147871cf2948ae0f1eea3a4558b

Fix use of uninitialized variable in undo system.

===================================================================

M	source/blender/blenkernel/intern/undo_system.c

===================================================================

diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c
index c9d629c4e19..448fe6cb167 100644
--- a/source/blender/blenkernel/intern/undo_system.c
+++ b/source/blender/blenkernel/intern/undo_system.c
@@ -858,7 +858,7 @@ static bool undosys_ID_map_lookup_index(const UndoIDPtrMap *map, const void *key
 	const UndoIDPtrMapItem *pmap = map->pmap;
 	const uint len = map->len;
 	if (len == 0) {
-		if (*r_index) {
+		if (r_index) {
 			*r_index = 0;
 		}
 		return false;



More information about the Bf-blender-cvs mailing list