Avoid calling blenderqread on dummy event. (This patch
courtesy of VS.NETs magic new prevent-use-of-unitialized-data debugging feature).
This commit is contained in:
@@ -1041,7 +1041,7 @@ void screenmain(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (towin) {
|
if (towin && event) {
|
||||||
if (blenderqread(event, val))
|
if (blenderqread(event, val))
|
||||||
addqueue_ext(G.curscreen->winakt, event, val, ascii);
|
addqueue_ext(G.curscreen->winakt, event, val, ascii);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user