mirror of
https://github.com/i3/i3.git
synced 2025-12-01 12:06:20 +00:00
1
release-notes/bugfixes/99-errorlog
Normal file
1
release-notes/bugfixes/99-errorlog
Normal file
@ -0,0 +1 @@
|
|||||||
|
fix error log related crash
|
||||||
@ -330,6 +330,9 @@ void errorlog(char *fmt, ...) {
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
/* also log to the error logfile, if opened */
|
/* also log to the error logfile, if opened */
|
||||||
|
if (!errorfile) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vfprintf(errorfile, fmt, args);
|
vfprintf(errorfile, fmt, args);
|
||||||
fflush(errorfile);
|
fflush(errorfile);
|
||||||
|
|||||||
Reference in New Issue
Block a user