1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00

debug: fix crash bug when DEBUG() is used before setup_logging()

this was introduced by the pstring removal
(1ea3ac8014)

metze
This commit is contained in:
Stefan Metzmacher
2007-12-14 08:21:59 +01:00
parent cf221a94bd
commit a412e6c7c6

View File

@@ -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) {