[Pkg-voip-commits] [bctoolbox] 04/60: Fix build

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:22 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 f66898be2ce6098aea767565f04c97069fac3491
Author: Benjamin Reis <benjamin.reis at belledonne-communications.com>
Date:   Thu Mar 30 15:35:35 2017 +0200

    Fix build
---
 tester/bctoolbox_tester.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tester/bctoolbox_tester.c b/tester/bctoolbox_tester.c
index 53793c2..a5d4a99 100644
--- a/tester/bctoolbox_tester.c
+++ b/tester/bctoolbox_tester.c
@@ -20,6 +20,8 @@
 #endif
 #include "bctoolbox/logging.h"
 #include "bctoolbox_tester.h"
+#include <libgen.h>
+
 static FILE * log_file = NULL;
 static const char *log_domain = "bctoolbox-tester";
 
@@ -64,7 +66,11 @@ int bctoolbox_tester_set_log_file(const char *filename) {
 		return -1;
 	}
 	bctbx_message("Redirecting traces to file [%s]", filename);
-	BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, dirname(filename), basename(filename), log_file);
+	const char *path = dirname(filename);
+	const char *name = basename(filename);
+	bctbx_message("path : %s, name : %s \n", path, name);
+	BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, path, name, log_file);
+	bctbx_message("Adding handler");
 	bctbx_add_log_handler(filehandler);
 	return 0;
 }

-- 
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