[gdm] display: invert g_warn_if_fail conditionals
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] display: invert g_warn_if_fail conditionals
- Date: Fri, 27 Feb 2015 17:21:23 +0000 (UTC)
commit 8a16520fced1633e1408a467162f4ceddaa6371c
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 27 12:20:40 2015 -0500
display: invert g_warn_if_fail conditionals
I got them inverted in my head when I did
commit 678ac9657d3166dcdeadbccb7ad9427ba0677339
daemon/gdm-display.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index 08b6ef4..624e618 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -1215,8 +1215,8 @@ gdm_display_dispose (GObject *object)
}
g_clear_object (&self->priv->launch_environment);
- g_warn_if_fail (self->priv->status == GDM_DISPLAY_PREPARED);
- g_warn_if_fail (self->priv->status == GDM_DISPLAY_MANAGED);
+ g_warn_if_fail (self->priv->status != GDM_DISPLAY_PREPARED);
+ g_warn_if_fail (self->priv->status != GDM_DISPLAY_MANAGED);
g_warn_if_fail (self->priv->user_access_file == NULL);
g_warn_if_fail (self->priv->access_file == NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]