bugfixed a premature assignment in summaryview_add_sender_to_cb()
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 22 May 2001 09:24:09 +0000 (09:24 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 22 May 2001 09:24:09 +0000 (09:24 +0000)
ChangeLog.claws
src/summaryview.c

index dd385e1..6f663bb 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-22 [alfons]
+
+       * src/summaryview.c: bugfixed a premature assignment in  summaryview_add_sender_to_cb()
+
 2001-05-21 [alfons]
 
        Minor things:
index bbdd58e..2c5d18c 100644 (file)
@@ -3066,13 +3066,15 @@ static void summary_add_sender_to_cb (SummaryView                       *summaryview,
        GtkMenuShell    *menushell;
        GtkWidget               *menu;
        GtkWidget               *menuitem;
-       GList                   *child = menushell->children;
+       GList                   *child;
        gboolean                found = FALSE;
        MsgInfo                 *msginfo;
        gchar                   *from_address;
 
        menushell = GTK_MENU_SHELL(summaryview->popupmenu);
-       g_return_if_fail(GTK_MENU_SHELL(summaryview->popupmenu));
+       g_return_if_fail(menushell != NULL);
+       child = menushell->children;
+       g_return_if_fail(child);
 
        /* we're iterating each menu item searching for the one with 
         * a "contacts" object data. if not found add the menu,