[gnome-builder] source-view: prefer NULL comparison checks



commit 9df77b4bb69aca153012f7a5feb605afcb8c4763
Author: Christian Hergert <chergert redhat com>
Date:   Mon Nov 7 14:53:33 2016 -0800

    source-view: prefer NULL comparison checks

 libide/sourceview/ide-source-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/sourceview/ide-source-view.c b/libide/sourceview/ide-source-view.c
index fc65b96..057711f 100644
--- a/libide/sourceview/ide-source-view.c
+++ b/libide/sourceview/ide-source-view.c
@@ -2331,7 +2331,7 @@ ide_source_view_key_press_event (GtkWidget   *widget,
   /*
    * Handle movement through the tab stops of the current snippet if needed.
    */
-  if ((snippet = g_queue_peek_head (priv->snippets)))
+  if (NULL != (snippet = g_queue_peek_head (priv->snippets)))
     {
       switch ((gint) event->keyval)
         {


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