From: Michael Adam Date: Sat, 12 Apr 2008 23:47:16 +0000 (+0200) Subject: registry cachehook: add talloc failed debug messages. X-Git-Tag: samba-3.3.0pre1~2714 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9841ee7fd429c7ff367dbb43b754cd5b6f53c065;p=thirdparty%2Fsamba.git registry cachehook: add talloc failed debug messages. Michael --- 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; }