mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
Fixed startup crash when weechat config file is not found
This commit is contained in:
@@ -2600,14 +2600,14 @@ gui_printf_type_color (t_gui_buffer *buffer, int type, int color, char *message,
|
||||
wee_log_printf ("gui_printf without buffer! this is a bug, please send to developers - thanks\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (buffer->dcc)
|
||||
buffer = gui_buffers;
|
||||
|
||||
if (buffer->dcc)
|
||||
return;
|
||||
}
|
||||
|
||||
if (buffer->dcc)
|
||||
buffer = gui_buffers;
|
||||
|
||||
if (buffer->dcc)
|
||||
return;
|
||||
|
||||
va_start (argptr, message);
|
||||
vsnprintf (buf, sizeof (buf) - 1, message, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
Reference in New Issue
Block a user