mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
wmaker: remove useless null pointer check (Coverity #109612)
As pointed by Coverity, the pointer in wwin->frame have already been dereferenced many times in the function, so it is useless to include a check later; removing it makes the code smaller thus easier to maintain. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
d72e6d415a
commit
a93570e5be
@@ -1155,7 +1155,7 @@ void wIconifyWindow(WWindow *wwin)
|
||||
const char *title;
|
||||
char title_buf[32];
|
||||
|
||||
if (wwin->frame && wwin->frame->title) {
|
||||
if (wwin->frame->title) {
|
||||
title = wwin->frame->title;
|
||||
} else {
|
||||
snprintf(title_buf, sizeof(title_buf), "(id=0x%lx)", wwin->client_win);
|
||||
|
||||
Reference in New Issue
Block a user