mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
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:
committed by
Carlos R. Mafra
parent
ca64091f05
commit
7f840db1aa
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user