From e6d034f7558f4017ae1fc2d123b10474d79aed6f Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 7 Mar 2001 21:30:22 +0000 Subject: (remote_recv_line): Fix another problem... svn path=/trunk/; revision=8585 --- camel/ChangeLog | 1 + camel/camel-remote-store.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 3bfd49df9f..dda57d86ad 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -5,6 +5,7 @@ !camel_exception_is_set(), since that will be wrong if ex==NULL... Fixes a crash in the IMAP keepalive code, but this same problem probably exists in other places too... + (remote_recv_line): Fix another problem... * providers/local/camel-mbox-provider.c: * providers/vee/.cvsignore: diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c index 991e5b0e1a..f756eb5ac8 100644 --- a/camel/camel-remote-store.c +++ b/camel/camel-remote-store.c @@ -507,7 +507,7 @@ camel_remote_store_send_stream (CamelRemoteStore *store, CamelStream *stream, Ca static int remote_recv_line (CamelRemoteStore *store, char **dest, CamelException *ex) { - CamelStreamBuffer *stream = CAMEL_STREAM_BUFFER (store->istream); + CamelStreamBuffer *stream; GByteArray *bytes; gchar buf[1024], *ret; gint nread; @@ -524,6 +524,7 @@ remote_recv_line (CamelRemoteStore *store, char **dest, CamelException *ex) g_strerror (errno)); return -1; } + stream = CAMEL_STREAM_BUFFER (store->istream); bytes = g_byte_array_new (); -- cgit v1.2.3