aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r--camel/camel-stream-buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c
index c25cda09bc..26d7d3197a 100644
--- a/camel/camel-stream-buffer.c
+++ b/camel/camel-stream-buffer.c
@@ -395,8 +395,7 @@ int camel_stream_buffer_gets(CamelStreamBuffer *sbf, char *buf, unsigned int max
} while (bytes_read>0);
sbf->ptr = inptr;
- if (outptr <= outend)
- *outptr = 0;
+ *outptr = 0;
return (int)(outptr - buf);
}