[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-377-g172f7ce

Günther Deschner gd at samba.org
Tue Nov 27 17:03:11 GMT 2007


The branch, v3-2-test has been updated
       via  172f7ce96dc12cfc7d2209d8ed56aeebefd6207b (commit)
      from  03673f2cd614526e7720275a5ba0869c68429f4d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 172f7ce96dc12cfc7d2209d8ed56aeebefd6207b
Author: Günther Deschner <gd at samba.org>
Date:   Tue Nov 27 18:01:56 2007 +0100

    Unless talloc has some new magic there is a ctx missing here.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/registry/reg_eventlog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/registry/reg_eventlog.c b/source/registry/reg_eventlog.c
index be47d13..8994acf 100644
--- a/source/registry/reg_eventlog.c
+++ b/source/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);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list