From 6ba07fd730cc6cbfe2295ab32f3425da104a9e41 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 18 Mar 2003 22:15:30 +0000 Subject: [PATCH] Avoid calling blenderqread on dummy event. (This patch courtesy of VS.NETs magic new prevent-use-of-unitialized-data debugging feature). --- source/blender/src/editscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index 804fa8a0486..4f4cd263c15 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -1041,7 +1041,7 @@ void screenmain(void) } } - if (towin) { + if (towin && event) { if (blenderqread(event, val)) addqueue_ext(G.curscreen->winakt, event, val, ascii); }