diff options
author | Michael Adam <obnox@samba.org> | 2010-05-24 15:10:48 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-05-25 10:35:31 +0200 |
commit | 0e8e5d5d6e7a1ab54cd108d70ade6aa884effe8f (patch) | |
tree | 92f62e709c335368591e4763c50238f50f9da52b /source3/utils | |
parent | bf65ff5ea2b84f3f5406d840f759da87e146cc3a (diff) | |
download | samba-0e8e5d5d6e7a1ab54cd108d70ade6aa884effe8f.tar.gz samba-0e8e5d5d6e7a1ab54cd108d70ade6aa884effe8f.tar.bz2 samba-0e8e5d5d6e7a1ab54cd108d70ade6aa884effe8f.zip |
s3:net rpc registry: use regval_ctr_init() instead of direct allocation
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_registry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index c7224f7ecc..db2e8d6205 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -1038,7 +1038,8 @@ static bool write_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk, return false; } - if ( !(values = TALLOC_ZERO_P( subkeys, struct regval_ctr )) ) { + werr = regval_ctr_init(subkeys, &values); + if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("write_registry_tree: talloc() failed!\n")); TALLOC_FREE(subkeys); return false; |