registry cachehook: add talloc failed debug messages.
authorMichael Adam <obnox@samba.org>
Sat, 12 Apr 2008 23:47:16 +0000 (01:47 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 12 Apr 2008 23:47:16 +0000 (01:47 +0200)
Michael
(This used to be commit 9841ee7fd429c7ff367dbb43b754cd5b6f53c065)

source3/registry/reg_cachehook.c

index d59dc4cbd586e4c063b6e128e4e67402eb58b71a..eb2884fc26b2f35659044f66ee1e5b7d9d6c35b2 100644 (file)
@@ -38,9 +38,15 @@ static char *keyname_to_path(TALLOC_CTX *mem_ctx, const char *keyname)
 
        path = talloc_asprintf(mem_ctx, "\\%s", keyname);
        if (path == NULL) {
+               DEBUG(0, ("talloc_asprintf failed!\n"));
                return NULL;
        }
+
        path = talloc_string_sub(mem_ctx, path, "\\", "/");
+       if (path == NULL) {
+               DEBUG(0, ("talloc_string_sub_failed!\n"));
+       }
+
        return path;
 }