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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user