summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-28 15:41:30 +0200
committerVolker Lendecke <vlendec@samba.org>2010-10-28 14:32:11 +0000
commit4b2e2f94bb505f3de6411cfc8e01d05b010a2819 (patch)
tree905b18a2d9e5cb35de0d3c6a3bcab556619de50a
parent8b87603de4f40c341d23262b4ffe357248ac4ff3 (diff)
downloadsamba-4b2e2f94bb505f3de6411cfc8e01d05b010a2819.tar.gz
samba-4b2e2f94bb505f3de6411cfc8e01d05b010a2819.tar.bz2
samba-4b2e2f94bb505f3de6411cfc8e01d05b010a2819.zip
s3: Streamline regdb_normalize_keynames_fn a bit
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Oct 28 14:32:11 UTC 2010 on sn-devel-104
-rw-r--r--source3/registry/reg_backend_db.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 489a69ee66..322cabf564 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -417,10 +417,8 @@ static int regdb_normalize_keynames_fn(struct db_record *rec,
(const char *) rec->key.dptr,
keyname));
- new_rec.value.dptr = rec->value.dptr;
- new_rec.value.dsize = rec->value.dsize;
- new_rec.key.dptr = (unsigned char *) keyname;
- new_rec.key.dsize = strlen(keyname)+1;
+ new_rec.value = rec->value;
+ new_rec.key = string_term_tdb_data(keyname);
new_rec.private_data = rec->private_data;
/* Delete the original record and store the normalized key */