[gnome-builder] terminal: fix logic error



commit 31437294b8ed6e1cce0e594e191c11c869f9bbb8
Author: Christian Hergert <chergert redhat com>
Date:   Fri Sep 16 12:18:03 2016 -0700

    terminal: fix logic error

 plugins/terminal/gb-terminal-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/terminal/gb-terminal-view.c b/plugins/terminal/gb-terminal-view.c
index 4f57f29..42fe6c2 100644
--- a/plugins/terminal/gb-terminal-view.c
+++ b/plugins/terminal/gb-terminal-view.c
@@ -84,7 +84,7 @@ gb_terminal_view_discover_shell (GCancellable  *cancellable,
 
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
-  if (cached_shell == NULL)
+  if (cached_shell != NULL)
     return cached_shell;
 
   command = g_strdup_printf ("sh -c 'cat /etc/passwd | grep ^%s: | cut -f 7 -d :'",


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