Summary:
passing null here causes any log message to crash the app and is probably not
the intended result
Reviewers: cedric, segfaultxavi
Reviewed By: cedric, segfaultxavi
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8513
{
#ifdef EINA_ENABLE_LOG
LOG_LOCK();
- _print_cb = cb;
+ if (cb)
+ _print_cb = cb;
+ else
+ _print_cb = eina_log_print_cb_stderr;
_print_cb_data = data;
eina_log_print_prefix_update();
LOG_UNLOCK();