From 3c0a32c10299dbe1aa4d358a19f3ec8159e02681 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 27 Dec 2010 15:09:03 -0600 Subject: stk: Remove unneeded assignment --- src/stk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/stk.c b/src/stk.c index 5e5c2e4a..bec46ea7 100644 --- a/src/stk.c +++ b/src/stk.c @@ -1107,10 +1107,8 @@ static gboolean handle_command_set_up_menu(const struct stk_command *cmd, if (menu == NULL && stk->main_menu == NULL) return TRUE; - if (stk->main_menu) { + if (stk->main_menu) stk_menu_free(stk->main_menu); - stk->main_menu = NULL; - } stk->main_menu = menu; -- cgit v1.2.3