From dd6947d6806f95352219adff5d9322223a341c46 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 11 Jul 2006 16:38:55 +0000 Subject: [PATCH] * handle empty stream gracefully (even if gtkhtml doesn't) pmo-trunk-r362 --- src/modest-tny-stream-gtkhtml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modest-tny-stream-gtkhtml.c b/src/modest-tny-stream-gtkhtml.c index 6c77c63..6303a0f 100644 --- a/src/modest-tny-stream-gtkhtml.c +++ b/src/modest-tny-stream-gtkhtml.c @@ -164,7 +164,7 @@ gtkhtml_write (TnyStreamIface *self, const char *buffer, size_t n) return 0; } - if (n == 0) + if (n == 0 || !buffer) return 0; gtk_html_stream_write (priv->stream, buffer, n); -- 1.7.9.5