svn commit: samba r9967 - in trunk/source/registry: .
jerry at samba.org
jerry at samba.org
Fri Sep 2 19:45:49 GMT 2005
Author: jerry
Date: 2005-09-02 19:45:48 +0000 (Fri, 02 Sep 2005)
New Revision: 9967
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9967
Log:
remove unnecessary parent talloc ctx
Modified:
trunk/source/registry/reg_db.c
Changeset:
Modified: trunk/source/registry/reg_db.c
===================================================================
--- trunk/source/registry/reg_db.c 2005-09-02 19:45:22 UTC (rev 9966)
+++ trunk/source/registry/reg_db.c 2005-09-02 19:45:48 UTC (rev 9967)
@@ -92,18 +92,10 @@
fstring keyname, subkeyname;
REGSUBKEY_CTR *subkeys;
REGVAL_CTR *values;
- uint32 *ctx;
int i;
const char *p, *p2;
UNISTR2 data;
- /* create a new top level talloc ctx */
-
- if ( !(ctx = TALLOC_P( NULL, uint32 )) ) {
- DEBUG(0,("init_registry_data: top level talloc() failure!\n"));
- return False;
- }
-
/* loop over all of the predefined paths and add each component */
for ( i=0; builtin_registry_paths[i] != NULL; i++ ) {
@@ -140,7 +132,7 @@
we are about to update the record. We just want any
subkeys already present */
- if ( !(subkeys = TALLOC_ZERO_P( ctx, REGSUBKEY_CTR )) ) {
+ if ( !(subkeys = TALLOC_ZERO_P( NULL, REGSUBKEY_CTR )) ) {
DEBUG(0,("talloc() failure!\n"));
return False;
}
@@ -158,7 +150,7 @@
/* loop over all of the predefined values and add each component */
for ( i=0; builtin_registry_values[i].path != NULL; i++ ) {
- if ( !(values = TALLOC_ZERO_P( ctx, REGVAL_CTR )) ) {
+ if ( !(values = TALLOC_ZERO_P( NULL, REGVAL_CTR )) ) {
DEBUG(0,("talloc() failure!\n"));
return False;
}
More information about the samba-cvs
mailing list