diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-07-28 08:02:18 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-07-28 08:02:18 +1000 |
commit | b8770a4fd8408473593fa4c6600bce056183958d (patch) | |
tree | 5c18a7831e9d5014e0b4c207a81be7e37961a23a /source/dsdb | |
parent | 7e90cc197c4fb2884f368cd72f391d0d8016fb96 (diff) | |
download | samba-b8770a4fd8408473593fa4c6600bce056183958d.tar.gz |
Fix warnings in new prefixMap code
Diffstat (limited to 'source/dsdb')
-rw-r--r-- | source/dsdb/schema/schema_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/dsdb/schema/schema_init.c b/source/dsdb/schema/schema_init.c index 9b8959466d5..85fdbe9e873 100644 --- a/source/dsdb/schema/schema_init.c +++ b/source/dsdb/schema/schema_init.c @@ -566,9 +566,10 @@ WERROR dsdb_read_prefixes_from_ldb(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, return WERR_NOMEM; } for (i=0; i < blob->ctr.dsdb.num_mappings; i++) { + char *oid; (*prefixes)[i].id = blob->ctr.dsdb.mappings[i].id_prefix<<16; - (*prefixes)[i].oid = talloc_strdup(mem_ctx, blob->ctr.dsdb.mappings[i].oid.oid); - (*prefixes)[i].oid = talloc_asprintf_append((*prefixes)[i].oid, "."); + oid = talloc_strdup(mem_ctx, blob->ctr.dsdb.mappings[i].oid.oid); + (*prefixes)[i].oid = talloc_asprintf_append(oid, "."); (*prefixes)[i].oid_len = strlen(blob->ctr.dsdb.mappings[i].oid.oid); } |