mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
We may as well not use these temporary variables - they are only used once and
just make it harder to debug (gcc stips optomises them away).
This commit is contained in:
parent
d1ea20cc23
commit
100d2705dd
@ -1071,12 +1071,10 @@ void init_q_lookup_names(TALLOC_CTX *mem_ctx, LSA_Q_LOOKUP_NAMES *q_l,
|
||||
}
|
||||
|
||||
for (i = 0; i < num_names; i++) {
|
||||
const char *name = names[i];
|
||||
const char *dom_name = dom_names[i];
|
||||
char *full_name;
|
||||
int len;
|
||||
|
||||
full_name = talloc_asprintf(mem_ctx, "%s\\%s", dom_name, name);
|
||||
full_name = talloc_asprintf(mem_ctx, "%s\\%s", dom_names[i], names[i]);
|
||||
if (!full_name) {
|
||||
DEBUG(0, ("init_q_lookup_names(): out of memory doing talloc_asprintf\n"));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user