]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: remove bad buffer initialization
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Tue, 29 Mar 2016 08:27:50 +0000 (10:27 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Wed, 30 Mar 2016 15:03:35 +0000 (17:03 +0200)
test/birdtest.h

index 6c53c669d1b28380e58197df432fa0f21eaa7aaa..f1c856974b4a0a4da96fec99d557355fa73f0cff 100644 (file)
@@ -150,7 +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] = "";                                                   \
+      char buf[BT_BUFFER_SIZE];                                                                \
       snprintf(buf, sizeof(buf), "%s(", #fn);                                          \
       bt_dump(buf, in, in_fmt);                                                                \
       bt_strncat(buf, ") gives ");                                                     \