aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-utils.c
diff options
context:
space:
mode:
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);