diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 01:47:16 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-13 01:47:16 +0200 |
commit | b5a75ec402d54e85d199c24b1314975b98258593 (patch) | |
tree | 6b9683f55b54c683f2aa911bd992fce183f7329e /source3 | |
parent | a721f0a729a345f2ef4016343a001658a33c009b (diff) | |
download | samba-b5a75ec402d54e85d199c24b1314975b98258593.tar.gz samba-b5a75ec402d54e85d199c24b1314975b98258593.tar.bz2 samba-b5a75ec402d54e85d199c24b1314975b98258593.zip |
registry cachehook: add talloc failed debug messages.
Michael
(This used to be commit 9841ee7fd429c7ff367dbb43b754cd5b6f53c065)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_cachehook.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index d59dc4cbd5..eb2884fc26 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/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; } |