From: Dirk-Jan C. Binnema Date: Tue, 11 Jul 2006 16:38:55 +0000 (+0000) Subject: * handle empty stream gracefully (even if gtkhtml doesn't) X-Git-Tag: git_migration_finished~4514 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=dd6947d6806f95352219adff5d9322223a341c46 * handle empty stream gracefully (even if gtkhtml doesn't) pmo-trunk-r362 --- 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);