1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r17047: Fix a typo and a possible NULL dereference

This commit is contained in:
Volker Lendecke 2006-07-15 08:36:44 +00:00 committed by Gerald (Jerry) Carter
parent a8df1863bf
commit c0d9114706

View File

@ -229,7 +229,7 @@ BOOL regdb_init( void )
/* always setup the necessary keys and values */
if ( !init_registry_data() ) {
DEBUG(0,("init_registry: Failed to initiailize data in registry!\n"));
DEBUG(0,("init_registry: Failed to initialize data in registry!\n"));
return False;
}
@ -313,7 +313,9 @@ static BOOL regdb_store_keys_internal( const char *key, REGSUBKEY_CTR *ctr )
/* allocate some initial memory */
buffer = SMB_MALLOC(sizeof(pstring));
if (!(buffer = SMB_MALLOC(sizeof(pstring)))) {
return False;
}
buflen = sizeof(pstring);
len = 0;