From: Christophe CURIS <christophe.cu...@free.fr> As pointed by Coverity, we store a value into the variable 'entry' but we never use it later, although we re-use the variable.
For the maintainability of the code, it is not really good as it could mislead into thinking the value could be used, so this patch removes the assignation. Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- src/dock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dock.c b/src/dock.c index 8b13568..8853fa3 100644 --- a/src/dock.c +++ b/src/dock.c @@ -1220,9 +1220,9 @@ static WMenu *dockMenuCreate(WScreen *scr, int type) scr->dock_pos_menu = makeDockPositionMenu(scr); wMenuEntrySetCascade(menu, entry, scr->dock_pos_menu); - if (!wPreferences.flags.nodrawer) { - entry = wMenuAddCallback(menu, _("Add a drawer"), addADrawerCallback, NULL); - } + if (!wPreferences.flags.nodrawer) + wMenuAddCallback(menu, _("Add a drawer"), addADrawerCallback, NULL); + } else { if (type == WM_CLIP) entry = wMenuAddCallback(menu, _("Clip Options"), NULL, NULL); -- 2.1.1 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.