]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small change in birdtest.h
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Tue, 3 Nov 2015 08:26:38 +0000 (09:26 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Tue, 3 Nov 2015 08:26:38 +0000 (09:26 +0100)
Thanks to Martin Mares.

test/birdtest.h

index 1bed6f92d8590353c30ad72e0a26034532d12747..6c53c669d1b28380e58197df432fa0f21eaa7aaa 100644 (file)
@@ -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 ");                                                     \