1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r23669: Move a variable into the only block where it is used.

This commit is contained in:
Michael Adam 2007-07-01 00:09:20 +00:00 committed by Gerald (Jerry) Carter
parent a4c2b20296
commit 82be4137b7

View File

@ -51,7 +51,6 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx,
*/
smb_ucs2_t *tmp;
uint32 num_ucs2 = length / 2;
if (length == 1) {
/* win2k regedit gives us a string of 1 byte when
@ -71,6 +70,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx,
goto error;
}
else {
uint32 num_ucs2 = length / 2;
if (!(tmp = SMB_MALLOC_ARRAY(smb_ucs2_t, num_ucs2+1))) {
err = WERR_NOMEM;
goto error;