mirror of https://github.com/djcb/mu.git
* mu-msg-part: g_mime_data_wrapper_write_to_stream returns ssize_t, not
gboolean
This commit is contained in:
parent
7a5436e847
commit
28c6f2d8d7
|
@ -98,7 +98,8 @@ AS_IF([test "x$have_gtest" = "xno"],[
|
|||
AC_MSG_WARN([You need GLIB version >= 2.22 to build the tests])
|
||||
])
|
||||
|
||||
# gmime 2.4 or 2.6? mu has only been tested with gmime-2.4, but Fedora
|
||||
# gmime 2.4 or 2.6?
|
||||
# mu has only been tested with gmime-2.4, but Fedora
|
||||
# 14 ships with gmime 2.5.x, which registers itself (pkgconfig) as 2.6
|
||||
# it is reported mu works fine with this new gmime as well, so we support
|
||||
# both; based on patch by GooseYArd
|
||||
|
|
|
@ -354,7 +354,7 @@ write_part_to_fd (GMimePart *part, int fd, GError **err)
|
|||
* give errors...*/
|
||||
|
||||
rv = g_mime_data_wrapper_write_to_stream (wrapper, stream);
|
||||
if (!rv)
|
||||
if (rv == -1)
|
||||
g_set_error (err, 0, MU_ERROR_GMIME,
|
||||
"failed to write to stream");
|
||||
|
||||
|
|
Loading…
Reference in New Issue