Index: gio/gbufferedinputstream.c
===================================================================
--- gio/gbufferedinputstream.c	(revision 7681)
+++ gio/gbufferedinputstream.c	(working copy)
@@ -878,7 +878,7 @@
 
   available = priv->end - priv->pos;
 
-  if (available < 1)
+  if (available != 0)
     {
       g_input_stream_clear_pending (input_stream);
       return priv->buffer[priv->pos++];
