mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
registry: combine talloc_strdup() and normalize_reg_path() in regdb_fetch_keys().
the talloc_strdup() call is just and extra allocation here. Michael
This commit is contained in:
parent
1e4d2310d0
commit
217233349b
@ -733,13 +733,7 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
|
||||
|
||||
DEBUG(11,("regdb_fetch_keys: Enter key => [%s]\n", key ? key : "NULL"));
|
||||
|
||||
path = talloc_strdup(frame, key);
|
||||
if (!path) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* convert to key format */
|
||||
path = normalize_reg_path(frame, path);
|
||||
path = normalize_reg_path(frame, key);
|
||||
if (!path) {
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user