0.8.11claws40
authorChristoph Hohmann <reboot@gmx.ch>
Sun, 23 Mar 2003 14:00:34 +0000 (14:00 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sun, 23 Mar 2003 14:00:34 +0000 (14:00 +0000)
        * src/news.c
                init news session to prevent crash when session is closed

ChangeLog.claws
configure.ac
src/news.c

index 5199642..61b1227 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-22 [christoph] 0.8.11claws40
+
+       * src/news.c
+               init news session to prevent crash when session is closed
+
 2003-03-22 [christoph] 0.8.11claws39
 
        * src/imap.c
index 041dbcd..73d5edc 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws39
+EXTRA_VERSION=claws40
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 40d238d..ef266cd 100644 (file)
@@ -214,11 +214,11 @@ static Session *news_session_new(const gchar *server, gushort port,
                return NULL;
 
        session = g_new(NNTPSession, 1);
+       session_init(SESSION(session));
        SESSION(session)->type             = SESSION_NEWS;
        SESSION(session)->server           = g_strdup(server);
        session->nntp_sock                 = nntp_sock;
        SESSION(session)->sock             = nntp_sock->sock;
-       SESSION(session)->last_access_time = time(NULL);
        SESSION(session)->data             = NULL;
 
        SESSION(session)->destroy          = news_session_destroy;