summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 09:58:11 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 09:58:11 +0000
commit33cf9ba4b7c08341d9e4fe056c85a0f27ec40793 (patch)
tree22d93ffc11a15a607b75267c5b2e9b3a46dfd500
parent61b20e5ee653dda680ab3101fa2f7f7ad6ec251b (diff)
downloadsamba-33cf9ba4b7c08341d9e4fe056c85a0f27ec40793.tar.gz
samba-33cf9ba4b7c08341d9e4fe056c85a0f27ec40793.tar.bz2
samba-33cf9ba4b7c08341d9e4fe056c85a0f27ec40793.zip
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 used to be commit 100d2705ddfa1fde73a0bb06e8e097b2b1cbf36a)
-rw-r--r--source3/rpc_parse/parse_lsa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c
index 04acc75d7e..ae6068e3d6 100644
--- a/source3/rpc_parse/parse_lsa.c
+++ b/source3/rpc_parse/parse_lsa.c
@@ -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;