aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-11-29 05:27:16 +0800
committerDan Winship <danw@src.gnome.org>2000-11-29 05:27:16 +0800
commit06a83735415c1cd4e037839ce352e7d2d074be37 (patch)
tree74374d0e33b0fc226068f8b15137bdf9ada12031
parentea1f540203946579d6f8866d5b3c32bd7a62f54a (diff)
downloadgsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.gz
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.bz2
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.lz
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.xz
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.tar.zst
gsoc2013-evolution-06a83735415c1cd4e037839ce352e7d2d074be37.zip
Don't set exception to g_strerror (errno) when nread == 0, because it
* camel-remote-store.c (remote_recv_line): Don't set exception to g_strerror (errno) when nread == 0, because it won't have been set. svn path=/trunk/; revision=6702
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-remote-store.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 59b47f70c4..430cfc7c99 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2000-11-28 Dan Winship <danw@helixcode.com>
+ * camel-remote-store.c (remote_recv_line): Don't set exception to
+ g_strerror (errno) when nread == 0, because it won't have been
+ set.
+
* providers/pop3/camel-pop3-folder.c (pop3_finalize): Don't try to
free things if they haven't been set yet.
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c
index 7c64ab6a67..c69ba3591e 100644
--- a/camel/camel-remote-store.c
+++ b/camel/camel-remote-store.c
@@ -448,7 +448,8 @@ remote_recv_line (CamelRemoteStore *store, char **dest, CamelException *ex)
g_free (ret);
ret = NULL;
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
- g_strerror (errno));
+ nread ? g_strerror (errno) :
+ _("Server disconnected."));
camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL);
return -1;