From 9a55940e95909900b72726b2e216b36cbbd305ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 19 Jan 2017 16:49:38 +0100 Subject: [PATCH] libgpo: Fix error check in gp_inifile_init_context_direct() Guenther Signed-off-by: Guenther Deschner Reviewed-by: Andreas Schneider --- libgpo/gpo_ini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c index 198e8afc1ec2..c1b1698b184d 100644 --- a/libgpo/gpo_ini.c +++ b/libgpo/gpo_ini.c @@ -359,7 +359,7 @@ NTSTATUS gp_inifile_init_context_direct(TALLOC_CTX *mem_ctx, { struct gp_inifile_context *gp_ctx = NULL; NTSTATUS status; - int rv; + bool rv; char *tmp_filename = NULL; if (unix_path == NULL || pgp_ctx == NULL) { @@ -382,7 +382,7 @@ NTSTATUS gp_inifile_init_context_direct(TALLOC_CTX *mem_ctx, change_section, store_keyval_pair, gp_ctx); - if (rv != 0) { + if (!rv) { return NT_STATUS_NO_SUCH_FILE; } -- 2.34.1