[gnome-builder] ls: check for non-NULL content-type
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ls: check for non-NULL content-type
- Date: Tue, 16 Jul 2019 22:19:43 +0000 (UTC)
commit e4a4e64f0b5633be8a4116e6c10cab9fec649259
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 16 15:18:06 2019 -0700
ls: check for non-NULL content-type
src/plugins/ls/gbp-ls-workbench-addin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/ls/gbp-ls-workbench-addin.c b/src/plugins/ls/gbp-ls-workbench-addin.c
index 50bb478d0..07c9e29c8 100644
--- a/src/plugins/ls/gbp-ls-workbench-addin.c
+++ b/src/plugins/ls/gbp-ls-workbench-addin.c
@@ -110,7 +110,7 @@ gbp_ls_workbench_addin_open_async (IdeWorkbenchAddin *addin,
surface = ide_workspace_get_surface_by_name (workspace, "terminal");
/* If this isn't a directory, get the parent */
- if (!g_str_equal (content_type, "inode/directory"))
+ if (!ide_str_equal0 (content_type, "inode/directory"))
file = parent = g_file_get_parent (file);
/* First try to find an existing view for the file */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]