mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
log: reset log callback to default when NULL is passed
This commit is contained in:
parent
5faa1e466b
commit
af36f762ca
1 changed files with 2 additions and 0 deletions
2
log.c
2
log.c
|
@ -19,6 +19,8 @@ void liftoff_log_init(enum liftoff_log_importance verbosity,
|
|||
log_importance = verbosity;
|
||||
if (callback) {
|
||||
log_callback = callback;
|
||||
} else {
|
||||
log_callback = log_stderr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue