Fix use of uninitialized variable in undo system.

This commit is contained in:
Brecht Van Lommel 2019-03-13 13:47:47 +01:00
parent d555f6a4ab
commit ffa29194bb
Notes: blender-bot 2023-02-14 06:55:40 +01:00
Referenced by issue #62554, Startup failure
Referenced by issue #62555, Viewport borders flicker when splitting said viewport
1 changed files with 1 additions and 1 deletions

View File

@ -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;