1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +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:
Christophe CURIS
2015-04-25 12:44:26 +02:00
committed by Carlos R. Mafra
parent d72e6d415a
commit a93570e5be

View File

@@ -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);