mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
nwrap: move var into scope in nwrap_add_hname()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
f7b28bd655
commit
3cc12ec554
@ -2629,7 +2629,6 @@ static bool nwrap_add_hname(struct nwrap_entdata *const ed)
|
||||
char *const h_name = (char *const)(ed->ht.h_name);
|
||||
ENTRY e;
|
||||
ENTRY *p;
|
||||
char *h_name_alias;
|
||||
unsigned i;
|
||||
|
||||
/* Maybe it's little bit late ... */
|
||||
@ -2664,6 +2663,8 @@ static bool nwrap_add_hname(struct nwrap_entdata *const ed)
|
||||
|
||||
/* Itemize aliases */
|
||||
for (i = 0; ed->ht.h_aliases[i] != NULL; ++i) {
|
||||
char *h_name_alias;
|
||||
|
||||
h_name_alias = ed->ht.h_aliases[i];
|
||||
assert(h_name_alias != NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user