r9390: fixed mixing of code and data
authorAndrew Tridgell <tridge@samba.org>
Thu, 18 Aug 2005 12:21:42 +0000 (12:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:33:32 +0000 (13:33 -0500)
(This used to be commit ae2122e76a7e50435dafcc412ee425b522c0c766)

source4/lib/registry/reg_backend_ldb.c

index 114614597f6ad7a8e82e01a07371f6813ae34f90..3c50258d02f3dc007d63318b2a626e753dae5996 100644 (file)
@@ -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;