summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-05 21:43:27 +0100
committerLuke from DC <[email protected]>2020-12-11 00:56:13 +0000
commitb0861e06a198566774e355fd792e830e389062e4 (patch)
tree712726fe736bf7f000e2d77d24b4103592ab6f77
parentf7df5c71e6dede40bc891c8192c9e17f60d617e8 (diff)
downloadmate-panel-b0861e06a198566774e355fd792e830e389062e4.tar.bz2
mate-panel-b0861e06a198566774e355fd792e830e389062e4.tar.xz
cppcheck warning: The if condition is the same as the previous one
-rw-r--r--mate-panel/applet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mate-panel/applet.c b/mate-panel/applet.c
index 5df797be..37cb600a 100644
--- a/mate-panel/applet.c
+++ b/mate-panel/applet.c
@@ -645,11 +645,10 @@ applet_show_menu (AppletInfo *info,
panel_widget = mate_panel_applet_get_panel_widget (info);
- if (info->menu == NULL)
+ if (info->menu == NULL) {
info->menu = mate_panel_applet_create_menu (info);
-
- if (info->menu == NULL)
- return;
+ g_return_if_fail (info->menu != NULL);
+ }
mate_panel_applet_menu_set_recurse (GTK_MENU (info->menu),
"menu_panel",