projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* handle empty stream gracefully (even if gtkhtml doesn't)
[modest]
/
src
/
modest-tny-stream-gtkhtml.c
diff --git
a/src/modest-tny-stream-gtkhtml.c
b/src/modest-tny-stream-gtkhtml.c
index
6c77c63
..
6303a0f
100644
(file)
--- 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);