Fix use of uninitialized variable in undo system.
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue