[Pkg-voip-commits] [bctoolbox] 48/60: respect C90

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 a04e7a3d56128af0bcb29e47f310d453c64976b1
Author: Benjamin Reis <benjamin.reis at belledonne-communications.com>
Date:   Fri Jun 23 14:34:49 2017 +0200

    respect C90
---
 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 81aa5b7..06efef6 100644
--- a/src/logging/logging.c
+++ b/src/logging/logging.c
@@ -527,8 +527,8 @@ static void _rotate_log_collection_files(bctbx_file_log_handler_t *filehandler)
 	char *file_no_extension = bctbx_strdup(filehandler->name);
 	char *extension = strrchr(file_no_extension, '.');
 	char *extension2 = bctbx_strdup(extension);
-	file_no_extension[extension - file_no_extension] = '\0';
 	int n = 1;
+	file_no_extension[extension - file_no_extension] = '\0';
 
 	log_filename = bctbx_strdup_printf("%s/%s_1%s",
 		filehandler->path,

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