From 9841ee7fd429c7ff367dbb43b754cd5b6f53c065 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 01:47:16 +0200 Subject: [PATCH] registry cachehook: add talloc failed debug messages. Michael --- source/registry/reg_cachehook.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.11.4.GIT