diff options
author | Günther Deschner <gd@samba.org> | 2017-01-19 16:49:38 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-01-20 11:18:21 +0100 |
commit | 9a55940e95909900b72726b2e216b36cbbd305ab (patch) | |
tree | cc75ab78abcaa21f18afec42bcb3918a71d63077 /libgpo/gpo_ini.c | |
parent | ca5d36d8425d7b173b977ff4fd02d057a7e23d44 (diff) | |
download | samba-9a55940e95909900b72726b2e216b36cbbd305ab.tar.gz |
libgpo: Fix error check in gp_inifile_init_context_direct()
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'libgpo/gpo_ini.c')
-rw-r--r-- | libgpo/gpo_ini.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c index 198e8afc1ec..c1b1698b184 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; } |