[glib] goutputstream: Fix pre-condition



commit 36f7440bb708afceb2a845438378efe95389acc8
Author: Philip Withnall <withnall endlessm com>
Date:   Fri Dec 1 10:02:21 2017 +0000

    goutputstream: Fix pre-condition
    
    Spotted by Izak van Langevelde.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791036

 gio/goutputstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/goutputstream.c b/gio/goutputstream.c
index 6372fd9..d72660a 100644
--- a/gio/goutputstream.c
+++ b/gio/goutputstream.c
@@ -384,7 +384,7 @@ g_output_stream_vprintf (GOutputStream  *stream,
   gboolean  success;
 
   g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
-  g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (stream), FALSE);
+  g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
   g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
   g_return_val_if_fail (format != NULL, FALSE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]