From 3b59d075824e31a00e5355b2786d1c63c53bfe67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Tue, 3 Nov 2015 09:26:38 +0100 Subject: [PATCH] Small change in birdtest.h Thanks to Martin Mares. --- test/birdtest.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/birdtest.h b/test/birdtest.h index 1bed6f92..6c53c669 100644 --- a/test/birdtest.h +++ b/test/birdtest.h @@ -150,8 +150,7 @@ void bt_strncat_(char *buf, size_t buf_size, const char *str, ...); #define bt_print_result_line(fn, in, out, fn_out, in_fmt, out_fmt, result) \ do \ { \ - char buf[BT_BUFFER_SIZE]; \ - bzero(buf, sizeof(buf)); \ + char buf[BT_BUFFER_SIZE] = ""; \ snprintf(buf, sizeof(buf), "%s(", #fn); \ bt_dump(buf, in, in_fmt); \ bt_strncat(buf, ") gives "); \