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:
2003-03-18 22:15:30 +00:00
parent 3a0725d4aa
commit 6ba07fd730

View File

@@ -1041,7 +1041,7 @@ void screenmain(void)
}
}
if (towin) {
if (towin && event) {
if (blenderqread(event, val))
addqueue_ext(G.curscreen->winakt, event, val, ascii);
}