[gnome-settings-daemon] rfkill: Fix assertion on startup



commit bea96f06068888931c0e62770ff076dadb4ef381
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jul 5 15:45:29 2013 +0200

    rfkill: Fix assertion on startup

 plugins/rfkill/rfkill-glib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/rfkill/rfkill-glib.c b/plugins/rfkill/rfkill-glib.c
index aabce67..fb93f4d 100644
--- a/plugins/rfkill/rfkill-glib.c
+++ b/plugins/rfkill/rfkill-glib.c
@@ -238,7 +238,7 @@ cc_rfkill_glib_open (CcRfkillGlib *rfkill)
        GList *events;
 
        g_return_val_if_fail (RFKILL_IS_GLIB (rfkill), -1);
-       g_return_val_if_fail (rfkill->priv->stream, -1);
+       g_return_val_if_fail (rfkill->priv->stream == NULL, -1);
 
        priv = rfkill->priv;
 


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