git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4fc313
)
s3:registry untangle an assignment from the check in regkey_open_onelevel() (cherry...
author
Michael Adam
<obnox@samba.org>
Mon, 23 Apr 2012 13:30:38 +0000
(15:30 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 10 May 2012 09:15:39 +0000
(11:15 +0200)
source3/registry/reg_api.c
patch
|
blob
|
history
diff --git
a/source3/registry/reg_api.c
b/source3/registry/reg_api.c
index c81d05da7ea24bbfe208e0a676edddb8d2dfd1ba..592f4e3ab0a8a7fe9d44dc7c94941ff4932b0935 100644
(file)
--- a/
source3/registry/reg_api.c
+++ b/
source3/registry/reg_api.c
@@
-195,7
+195,8
@@
static WERROR regkey_open_onelevel(TALLOC_CTX *mem_ctx,
/* Look up the table of registry I/O operations */
- if ( !(key->ops = reghook_cache_find( key->name )) ) {
+ key->ops = reghook_cache_find( key->name );
+ if (key->ops == NULL) {
DEBUG(0,("reg_open_onelevel: Failed to assign "
"registry_ops to [%s]\n", key->name ));
result = WERR_BADFILE;