diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 01:47:16 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-04-22 15:58:47 +0200 |
commit | 725d4c30d8a02e7d2257f9642552e26df882645f (patch) | |
tree | 36c567d3b99401cfaeecd4edbde241afe9fd3ad6 /source/registry | |
parent | 82b1a4a3d197a8f419748d8beba1f079dfe319ad (diff) | |
download | samba-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.c | 6 |
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; } |