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

Use a better parameter name.

Michael
(This used to be commit 3972deb90c)
This commit is contained in:
Michael Adam 2008-01-03 00:51:36 +01:00
parent c995a63371
commit a6fb71e55b

View File

@ -58,7 +58,7 @@ static WERROR libnet_smbconf_add_string_to_array(TALLOC_CTX *mem_ctx,
* Open a subkey of KEY_SMBCONF (i.e a service)
*/
static WERROR libnet_smbconf_reg_open_service_key(TALLOC_CTX *ctx,
const char *subkeyname,
const char *servicename,
uint32 desired_access,
struct registry_key **key)
{
@ -71,10 +71,10 @@ static WERROR libnet_smbconf_reg_open_service_key(TALLOC_CTX *ctx,
goto done;
}
if (subkeyname == NULL) {
if (servicename == NULL) {
path = talloc_strdup(ctx, KEY_SMBCONF);
} else {
path = talloc_asprintf(ctx, "%s\\%s", KEY_SMBCONF, subkeyname);
path = talloc_asprintf(ctx, "%s\\%s", KEY_SMBCONF, servicename);
}
werr = reg_open_path(ctx, path, desired_access,