bt_current_thread_clear_error();
thread_error = (void *) error;
BT_LOGD("Moved error object as current thread's error: addr=%p",
bt_current_thread_clear_error();
thread_error = (void *) error;
BT_LOGD("Moved error object as current thread's error: addr=%p",