[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-645-ga412e6c

Stefan Metzmacher metze at samba.org
Fri Dec 14 07:27:45 GMT 2007


The branch, v3-2-test has been updated
       via  a412e6c7c676a054acd9db371221a50078cfe1d9 (commit)
      from  cf221a94bd8794add508a2b9305b8c0d40c3346a (commit)

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


- Log -----------------------------------------------------------------
commit a412e6c7c676a054acd9db371221a50078cfe1d9
Author: Stefan Metzmacher <metze at samba.org>
Date:   Fri Dec 14 08:21:59 2007 +0100

    debug: fix crash bug when DEBUG() is used before setup_logging()
    
    this was introduced by the pstring removal
    (1ea3ac80146b83c2522b69e7747c823366a2b47d)
    
    metze

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

Summary of changes:
 source/lib/debug.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/debug.c b/source/lib/debug.c
index 4afc953..185c237 100644
--- a/source/lib/debug.c
+++ b/source/lib/debug.c
@@ -894,6 +894,10 @@ static void format_debug_text( const char *msg )
 	size_t i;
 	bool timestamp = (!stdout_logging && (lp_timestamp_logs() || !(lp_loaded())));
 
+	if (!format_bufr) {
+		debug_init();
+	}
+
 	for( i = 0; msg[i]; i++ ) {
 		/* Indent two spaces at each new line. */
 		if(timestamp && 0 == format_pos) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list