mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
goutputstream: Report input stream read failure correctly
When G_OUTPUT_STREAM_CLOSE_TARGET is set, g_output_stream_real_splice was not returning -1 in any error cases, since the success flag was being overwritten. https://bugzilla.gnome.org/show_bug.cgi?id=756255
This commit is contained in:
committed by
Alexander Larsson
parent
fb9df27776
commit
16e0a5a886
@@ -605,7 +605,8 @@ g_output_stream_real_splice (GOutputStream *stream,
|
|||||||
if (flags & G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET)
|
if (flags & G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET)
|
||||||
{
|
{
|
||||||
/* But write errors on close are bad! */
|
/* But write errors on close are bad! */
|
||||||
res = g_output_stream_internal_close (stream, cancellable, error);
|
if (!g_output_stream_internal_close (stream, cancellable, error))
|
||||||
|
res = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
|
Reference in New Issue
Block a user