dtcm: Coverity 88955
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 18:24:11 +0000 (19:24 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 18:24:11 +0000 (19:24 +0100)
cde/programs/dtcm/dtcm/browser.c

index bd0193af9af174690924da1fc63f120dd662d9c6..73603869477bed248eeab97669ba40a1b1130d4a 100644 (file)
@@ -798,7 +798,7 @@ bcanvas_event(Widget w, XtPointer client_data, XtPointer call_data)
        int x, y, boxw, boxh;
        pr_pos xy;
 
-        if ((event->type == ButtonRelease) || (event == NULL))
+        if ((event == NULL) || (event->type == ButtonRelease))
                 return;
 
        b = (Browser*)c->browser;