Fix infinite loop when calling linphone_core_enable_log_collection with the wrong state

This commit is contained in:
Sylvain Berfini 2016-09-27 15:58:02 +02:00
parent 6f53427358
commit cc818e155f

View file

@ -274,7 +274,7 @@ static void linphone_core_log_collection_handler(const char *domain, OrtpLogLeve
time_t tt;
int ret;
if (liblinphone_log_func != NULL) {
if (liblinphone_log_func != NULL && liblinphone_log_func != linphone_core_log_collection_handler) {
#ifndef _WIN32
va_list args_copy;
va_copy(args_copy, args);