summaryrefslogtreecommitdiffstats
path: root/source/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 01:47:16 +0200
committerKarolin Seeger <kseeger@samba.org>2008-04-22 15:58:47 +0200
commit725d4c30d8a02e7d2257f9642552e26df882645f (patch)
tree36c567d3b99401cfaeecd4edbde241afe9fd3ad6 /source/registry
parent82b1a4a3d197a8f419748d8beba1f079dfe319ad (diff)
downloadsamba-725d4c30d8a02e7d2257f9642552e26df882645f.tar.gz
samba-725d4c30d8a02e7d2257f9642552e26df882645f.tar.xz
samba-725d4c30d8a02e7d2257f9642552e26df882645f.zip
registry cachehook: add talloc failed debug messages.
Michael (cherry picked from commit 9841ee7fd429c7ff367dbb43b754cd5b6f53c065)
Diffstat (limited to 'source/registry')
-rw-r--r--source/registry/reg_cachehook.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/registry/reg_cachehook.c b/source/registry/reg_cachehook.c
index d59dc4cbd58..eb2884fc26b 100644
--- a/source/registry/reg_cachehook.c
+++ b/source/registry/reg_cachehook.c
@@ -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;
}