[glib] Fix a segfault in g_cancellable_cancel



commit 563c55bb7176e3fad5ea39061feb8406e5968ef3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 5 23:38:09 2009 -0400

    Fix a segfault in g_cancellable_cancel

 gio/gcancellable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gcancellable.c b/gio/gcancellable.c
index 8654883..88490b0 100644
--- a/gio/gcancellable.c
+++ b/gio/gcancellable.c
@@ -519,7 +519,7 @@ g_cancellable_cancel (GCancellable *cancellable)
   GCancellablePrivate *priv;
 
   if (cancellable == NULL ||
-      priv->cancelled)
+      cancellable->priv->cancelled)
     return;
 
   priv = cancellable->priv;



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