Code review: add return check in decode_to_stream_cb
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 31 Mar 2009 11:57:05 +0000 (11:57 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 31 Mar 2009 11:57:05 +0000 (11:57 +0000)
pmo-trunk-r8488

src/widgets/modest-gtkhtml-mime-part-view.c

index 36068cc..a53b7f2 100644 (file)
@@ -438,7 +438,9 @@ decode_to_stream_cb (TnyMimePart *self,
        gboolean is_text = GPOINTER_TO_INT (user_data);
 
        if (is_text) {
-               tny_stream_write (stream, "\n", 1);
+               if (tny_stream_write (stream, "\n", 1) == -1) {
+                       g_warning ("failed to write CR in %s", __FUNCTION__);
+               }
                tny_stream_reset (stream);
        }
        tny_stream_close (stream);