diff options
author | Matthias Clasen <mclasen@redhat.com> | 2008-11-28 05:57:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-11-28 05:57:07 +0000 |
commit | 0b715510de5d8c5f293216d29a8dd653a08b2a18 (patch) | |
tree | 5aa3d86b7624bdf912480f07677e96638aefa260 /gio/gbufferedinputstream.c | |
parent | 636fa4640d84eaa5da369d02db27fdc38321ed4b (diff) |
Bug 562393 – g_buffered_input_stream_read_byte broken if data available
2008-11-28 Matthias Clasen <mclasen@redhat.com>
Bug 562393 – g_buffered_input_stream_read_byte broken if data
available
* gio/gbufferedinputstream.c (g_buffered_input_stream_read_byte): Fix
handling of buffered content. Patch by Philip Withnall
* gio/tests/buffered-input-stream.c: Add a testcase for this bug.
* gio/tests/Makefile.am: And build it
svn path=/trunk/; revision=7686
Diffstat (limited to 'gio/gbufferedinputstream.c')
-rw-r--r-- | gio/gbufferedinputstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gbufferedinputstream.c b/gio/gbufferedinputstream.c index 040ce3b38..4ffdff73e 100644 --- a/gio/gbufferedinputstream.c +++ b/gio/gbufferedinputstream.c @@ -878,7 +878,7 @@ g_buffered_input_stream_read_byte (GBufferedInputStream *stream, available = priv->end - priv->pos; - if (available < 1) + if (available != 0) { g_input_stream_clear_pending (input_stream); return priv->buffer[priv->pos++]; |