diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-11 02:11:03 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-11 02:11:03 +0800 |
commit | 45f6b55148a6e393fa349c11e5c01efa1093c5ac (patch) | |
tree | 4a17c0217d4191c9d7388d45317e1c7003b85e7f /camel/providers/pop3/camel-pop3-folder.c | |
parent | 04b7488ac8b8ce75a55892adafa309f96be7ef7d (diff) | |
download | gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.tar gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.tar.gz gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.tar.bz2 gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.tar.lz gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.tar.xz gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.tar.zst gsoc2013-evolution-45f6b55148a6e393fa349c11e5c01efa1093c5ac.zip |
Set the total bytes expected to 0 if the response is empty too.
2001-08-10 Jeffrey Stedfast <fejj@ximian.com>
* providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
Set the total bytes expected to 0 if the response is empty too.
svn path=/trunk/; revision=11885
Diffstat (limited to 'camel/providers/pop3/camel-pop3-folder.c')
-rw-r--r-- | camel/providers/pop3/camel-pop3-folder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c index c8dc315ac3..8258114585 100644 --- a/camel/providers/pop3/camel-pop3-folder.c +++ b/camel/providers/pop3/camel-pop3-folder.c @@ -336,7 +336,7 @@ pop3_get_message_stream (CamelFolder *folder, int id, gboolean headers_only, Cam return NULL; } - if (result && sscanf (result, "%d", &total) != 1) + if (!result || (result && sscanf (result, "%d", &total) != 1)) total = 0; g_free (result); |