[PATCH] window.c: fix SIGSEGV in pointer_handle_motion

2013-08-29 Thread Paul Winwood
moved null pointer check and assignments before first window dereference. --- clients/window.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/window.c b/clients/window.c index cee436c..4f63132 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2904

[PATCH weston] SIGSEGV in window.c

2013-08-27 Thread Paul Winwood
Please go easy with me; this is the first time I have ever done this! I have found and fixed a SIGSEGV in window.c in pointer_handle_motion caused by dereferencing 'window' when it is null. There was a null pointer check after the dereference. The fix is to move the check before it. Patch: --- w