mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +01:00
wmaker: remove unnecessary check in acceptXDND (Coverity #72817)
As pointed by Coverity, if dock is still null at this point then the function will return via the previous check, because it is not possible to have icon_pos >= 0 if dock is null. This patch removes the check because it complicate the code which is not recommended for maintainability. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
3dea732ccb
commit
d83b5de644
@@ -226,8 +226,7 @@ static Bool acceptXDND(Window window)
|
||||
}
|
||||
if (icon_pos < 0)
|
||||
return False;
|
||||
if (!dock)
|
||||
return False;
|
||||
|
||||
if (isAwareXDND(dock->icon_array[icon_pos]->icon->icon_win))
|
||||
return False;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user