1
0
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:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent d1ea20cc23
commit 100d2705dd

View File

@ -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;