git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca5d36d
)
libgpo: Fix error check in gp_inifile_init_context_direct()
author
Günther Deschner
<gd@samba.org>
Thu, 19 Jan 2017 15:49:38 +0000
(16:49 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Fri, 20 Jan 2017 10:18:21 +0000
(11:18 +0100)
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libgpo/gpo_ini.c
patch
|
blob
|
history
diff --git
a/libgpo/gpo_ini.c
b/libgpo/gpo_ini.c
index 198e8afc1ec271ddc24c26b3540e0a8c3905d5e2..c1b1698b184d82c9ad08739980c94fba737443b3 100644
(file)
--- 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;
}