summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-27 18:01:56 +0100
committerGünther Deschner <gd@samba.org>2007-11-27 18:01:56 +0100
commit9d42af0d2447f8b344d79a67bf7181336c077ad0 (patch)
tree9a3a95647cfd948132ae72d174a0bca245871e6f /source3
parent96ea32b88671360634e07cd1ad7d9d9dd2b8c018 (diff)
downloadsamba-9d42af0d2447f8b344d79a67bf7181336c077ad0.tar.gz
samba-9d42af0d2447f8b344d79a67bf7181336c077ad0.tar.bz2
samba-9d42af0d2447f8b344d79a67bf7181336c077ad0.zip
Unless talloc has some new magic there is a ctx missing here.
Guenther (This used to be commit 172f7ce96dc12cfc7d2209d8ed56aeebefd6207b)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_eventlog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/registry/reg_eventlog.c b/source3/registry/reg_eventlog.c
index be47d13140..8994acf107 100644
--- a/source3/registry/reg_eventlog.c
+++ b/source3/registry/reg_eventlog.c
@@ -141,7 +141,7 @@ bool eventlog_init_keys(void)
/* now do the values under KEY_EVENTLOG/Application/Application */
TALLOC_FREE(evtlogpath);
- evtlogpath = talloc_asprintf("%s\\%s\\%s",
+ evtlogpath = talloc_asprintf(ctx, "%s\\%s\\%s",
KEY_EVENTLOG, *elogs, *elogs);
if (!evtlogpath) {
return false;
@@ -234,7 +234,7 @@ bool eventlog_add_source( const char *eventlog, const char *sourcename,
return false;
}
- evtlogpath = talloc_asprintf("%s\\%s", KEY_EVENTLOG, eventlog);
+ evtlogpath = talloc_asprintf(ctx, "%s\\%s", KEY_EVENTLOG, eventlog);
if (!evtlogpath) {
TALLOC_FREE(values);
return false;
@@ -320,7 +320,7 @@ bool eventlog_add_source( const char *eventlog, const char *sourcename,
return False;
}
TALLOC_FREE(evtlogpath);
- evtlogpath = talloc_asprintf("%s\\%s", KEY_EVENTLOG, eventlog );
+ evtlogpath = talloc_asprintf(ctx, "%s\\%s", KEY_EVENTLOG, eventlog );
if (!evtlogpath) {
TALLOC_FREE(subkeys);
return false;
@@ -347,7 +347,7 @@ bool eventlog_add_source( const char *eventlog, const char *sourcename,
return False;
}
TALLOC_FREE(evtlogpath);
- evtlogpath = talloc_asprintf("%s\\%s\\%s",
+ evtlogpath = talloc_asprintf(ctx, "%s\\%s\\%s",
KEY_EVENTLOG, eventlog, sourcename);
if (!evtlogpath) {
TALLOC_FREE(subkeys);