From 5e24a5729b2780031d3654a07f669b6cd1223eb9 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 16 Oct 2015 14:42:03 +0200 Subject: [PATCH] Fix same issue as before somewhere else --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 6f795abe2..d6a3a73c6 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -688,7 +688,7 @@ char * linphone_core_compress_log_collection() { filename = ms_strdup_printf("%s_log.%s", liblinphone_log_collection_prefix ? liblinphone_log_collection_prefix : LOG_COLLECTION_DEFAULT_PREFIX, COMPRESSED_LOG_COLLECTION_EXTENSION); - if (prepare_log_collection_file_to_upload(filename) < 0) { + if (prepare_log_collection_file_to_upload(filename) <= 0) { ms_free(filename); return NULL; }