[Pkg-voip-commits] [bctoolbox] 50/60: Do not add null handler

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit 9db92f007838d2f0936750c15900f7997613529b
Author: Benjamin Reis <benjamin.reis at belledonne-communications.com>
Date:   Thu Jun 29 11:43:44 2017 +0200

    Do not add null handler
---
 src/logging/logging.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/logging/logging.c b/src/logging/logging.c
index b610884..8649934 100644
--- a/src/logging/logging.c
+++ b/src/logging/logging.c
@@ -143,7 +143,7 @@ bctbx_log_handler_t* bctbx_create_file_log_handler(uint64_t max_size, const char
 *
 **/
 void bctbx_add_log_handler(bctbx_log_handler_t* handler){
-	if (!bctbx_list_find(__bctbx_logger.logv_outs, handler))
+	if (handler && !bctbx_list_find(__bctbx_logger.logv_outs, handler))
 		__bctbx_logger.logv_outs = bctbx_list_append(__bctbx_logger.logv_outs, (void*)handler);
 	/*else, already in*/
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list