aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-utils.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-02 03:50:02 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-02 03:50:02 +0800
commit2c543492092832d71f1f677d52a42043c8787be7 (patch)
tree6ba93586355665bff1edf44616e5951550204f79 /camel/gmime-utils.c
parente9e83c971456616965b183ce1009ba849be69672 (diff)
downloadgsoc2013-evolution-2c543492092832d71f1f677d52a42043c8787be7.tar.gz
gsoc2013-evolution-2c543492092832d71f1f677d52a42043c8787be7.tar.zst
gsoc2013-evolution-2c543492092832d71f1f677d52a42043c8787be7.zip
do not return NULL when line is empty.
* camel/gmime-utils.c (gmime_read_line_from_stream): do not return NULL when line is empty. * camel/camel-multipart.c (_read_part): return true when end of multipart is found, not the contrary svn path=/trunk/; revision=1055
Diffstat (limited to 'camel/gmime-utils.c')
-rw-r--r--camel/gmime-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/gmime-utils.c b/camel/gmime-utils.c
index 27cc6b9674..359f96380b 100644
--- a/camel/gmime-utils.c
+++ b/camel/gmime-utils.c
@@ -235,7 +235,7 @@ gmime_read_line_from_stream (CamelStream *stream)
} else end_of_stream = TRUE;
} while (!end_of_line && !end_of_stream);
- if ( (new_line->str[0]) != '\0')
+ if (!end_of_stream)
result = g_strdup (new_line->str);
else result=NULL;
g_string_free (new_line, TRUE);