diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-13 15:47:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-13 15:50:41 +0300 |
commit | ffa29194bbe71147871cf2948ae0f1eea3a4558b (patch) | |
tree | 4f874211449739a0fd5b0aa433908655d7ced986 | |
parent | d555f6a4abc50ab7fbf5ecd9d85965aeef0f4335 (diff) |
Fix use of uninitialized variable in undo system.
-rw-r--r-- | source/blender/blenkernel/intern/undo_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |