From 2c543492092832d71f1f677d52a42043c8787be7 Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Sun, 1 Aug 1999 19:50:02 +0000 Subject: 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 --- camel/gmime-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/gmime-utils.c') 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); -- cgit