git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3f98e
)
r23669: Move a variable into the only block where it is used.
author
Michael Adam
<obnox@samba.org>
Sun, 1 Jul 2007 00:09:20 +0000
(
00:09
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:23:44 +0000
(12:23 -0500)
(This used to be commit
82be4137b7bba6a9a433ec011e7f47587935ae61
)
source3/lib/util_reg_api.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_reg_api.c
b/source3/lib/util_reg_api.c
index 423fdfd3be53dc89fbc8d8770ea26beefc73c786..8668bd881759669fd31805cb960e6b0400a59d62 100644
(file)
--- a/
source3/lib/util_reg_api.c
+++ b/
source3/lib/util_reg_api.c
@@
-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;