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 dd385e1331a2b86f053c547c22cbcfbc9d5598be..6f663bbf8a4e620173ddfbd0bdd78cccc39caf5d 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:
 2001-05-21 [alfons]
 
        Minor things:
index bbdd58e85c9ddc67145daf25ca633e3d81983b93..2c5d18c07b1effd563917cc4e7f01cfe385bc9f9 100644 (file)
@@ -3066,13 +3066,15 @@ static void summary_add_sender_to_cb (SummaryView                       *summaryview,
        GtkMenuShell    *menushell;
        GtkWidget               *menu;
        GtkWidget               *menuitem;
        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);
        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,
 
        /* we're iterating each menu item searching for the one with 
         * a "contacts" object data. if not found add the menu,