WMaker: remove unnecessary check in Balloon show function (Coverity #50065)

As pointed by Coverity, there is a check to make sure a pointer is not NULL
but it is still dereferenced later in the function. As the code is done so
that this pointer cannot be NULL then it is not necessary to check that.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2014-05-20 21:29:56 +01:00
1 parent ca64091f05
commit 7f840db1aa
1 file changed
+2 -4
+2 -4
View File
@@ -382,10 +382,8 @@ static void showBalloon(WScreen * scr)
Window foow;
unsigned foo, w;
if (scr->balloon) {
scr->balloon->timer = NULL;
scr->balloon->ignoreTimer = 1;
}
scr->balloon->timer = NULL;
scr->balloon->ignoreTimer = 1;
if (!XGetGeometry(dpy, scr->balloon->objectWindow, &foow, &x, &y, &w, &foo, &foo, &foo)) {
scr->balloon->prevType = 0;