dtwm: Resolve coverity warnings

This commit is contained in:
Peter Howkins
2018-04-02 18:08:40 +01:00
parent 4b9bcae29f
commit 8362f92ceb
14 changed files with 39 additions and 46 deletions

View File

@@ -4202,7 +4202,7 @@ StartMarqueeSelect(WmScreenData *pSD, XEvent *pev)
/*
* Set up static variables for succeeding events
*/
if ((pev->type == ButtonPress) || (pev->type == ButtonRelease))
if (pev && (pev->type == ButtonPress) || (pev->type == ButtonRelease))
{
pointerX = pev->xbutton.x_root;
pointerY = pev->xbutton.y_root;