1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Fixed a compiler warning.

This commit is contained in:
Tim Potter
-
parent 35f0fbd254
commit bc0f1c1ec2

View File

@ -234,12 +234,12 @@ int regsubkey_ctr_numkeys( REGSUBKEY_CTR *ctr )
Retreive a specific key string Retreive a specific key string
**********************************************************************/ **********************************************************************/
char* regsubkey_ctr_specific_key( REGSUBKEY_CTR *ctr, uint32 index ) char* regsubkey_ctr_specific_key( REGSUBKEY_CTR *ctr, uint32 key_index )
{ {
if ( ! (index < ctr->num_subkeys) ) if ( ! (key_index < ctr->num_subkeys) )
return NULL; return NULL;
return ctr->subkeys[index]; return ctr->subkeys[key_index];
} }
/*********************************************************************** /***********************************************************************