log: reset log callback to default when NULL is passed

This commit is contained in:
Simon Ser 2019-10-30 20:52:30 +01:00
parent 5faa1e466b
commit af36f762ca
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

2
log.c
View file

@ -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;
}
}