* src/inc.c
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 4 Oct 2002 14:56:09 +0000 (14:56 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 4 Oct 2002 14:56:09 +0000 (14:56 +0000)
        fix segfault caused by pop before smtp
        call to inc_account_mail with NULL
        pointer for mainwin

ChangeLog.claws
configure.in
src/inc.c

index dc62982..c802d8e 100644 (file)
@@ -1,3 +1,10 @@
+2002-10-04 [christoph] 0.8.3claws45
+
+       * src/inc.c
+               fix segfault caused by pop before smtp
+               call to inc_account_mail with NULL
+               pointer for mainwin
+
 2002-10-04 [paul]      0.8.3claws44
 
        * configure.in
index 8f397eb..d997e6a 100644 (file)
@@ -10,7 +10,7 @@ MINOR_VERSION=8
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws44
+EXTRA_VERSION=claws45
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 9b68a4d..7dc89e4 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -237,7 +237,10 @@ static gint inc_account_mail(PrefsAccount *account, MainWindow *mainwin)
        IncProgressDialog *inc_dialog;
        IncSession *session;
        gchar *text[3];
-       FolderItem *item = mainwin->summaryview->folder_item;
+       FolderItem *item;
+       
+       if(mainwin && mainwin->summaryview)
+               item = mainwin->summaryview->folder_item;
 
        switch (account->protocol) {
        case A_IMAP4: