more sync with sylpheed 0.5.0pre1
[claws.git] / src / mainwindow.c
index 527669a8b8040407ecd7bf60f7519d0798401a67..ba5fc1095a638ecab1163ce39e216e86f9c487ae 100644 (file)
@@ -2030,15 +2030,15 @@ static void compose_mail_cb(MainWindow *mainwin, guint action,
 static void compose_news_cb(MainWindow *mainwin, guint action,
                            GtkWidget *widget)
 {
-       PrefsAccount * ac;
+       PrefsAccount * ac = NULL;
        GList * list;
        GList * cur;
 
        if (mainwin->summaryview->folder_item) {
                ac = mainwin->summaryview->folder_item->folder->account;
                if (ac && ac->protocol == A_NNTP) {
-                       FolderItem * item = mainwin->summaryview->folder_item;
-                       compose_new_with_recipient(ac, item->path);
+                       compose_new_with_recipient
+                               (ac, mainwin->summaryview->folder_item->path);
                        return;
                }
        }