summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-18 12:21:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:32 -0500
commita8d51f87620a688a286603766cbb7edb2b7c6e60 (patch)
tree1d4c7b775f7bd122d164770d0f2a2649e1873e98 /source4/lib/registry
parentb60ef4ee096d471992aac806fb67485ee26d657f (diff)
downloadsamba-a8d51f87620a688a286603766cbb7edb2b7c6e60.tar.gz
samba-a8d51f87620a688a286603766cbb7edb2b7c6e60.tar.bz2
samba-a8d51f87620a688a286603766cbb7edb2b7c6e60.zip
r9390: fixed mixing of code and data
(This used to be commit ae2122e76a7e50435dafcc412ee425b522c0c766)
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/reg_backend_ldb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/registry/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb.c
index 114614597f..3c50258d02 100644
--- a/source4/lib/registry/reg_backend_ldb.c
+++ b/source4/lib/registry/reg_backend_ldb.c
@@ -125,10 +125,11 @@ static char *reg_path_to_ldb(TALLOC_CTX *mem_ctx, struct registry_key *from, con
while(mypath) {
char *keyname;
- begin = strrchr(mypath, '\\');
struct ldb_val val;
char *key;
+ begin = strrchr(mypath, '\\');
+
if (begin) keyname = begin + 1;
else keyname = mypath;