*: hopefully all setup_common_bufsiz() are in place
[oweals/busybox.git] / networking / libiproute / ipneigh.c
index 151d3d109bcc83378ff128bb1a99ca3586e89a69..d2028b7b682112eb0197db1d0846536ca3b0f1f8 100644 (file)
@@ -42,6 +42,7 @@ struct filter_t {
 typedef struct filter_t filter_t;
 
 #define G_filter (*(filter_t*)bb_common_bufsiz1)
+#define INIT_G() do { setup_common_bufsiz(); } while (0)
 
 static int flush_update(void)
 {
@@ -339,6 +340,8 @@ int FAST_FUNC do_ipneigh(char **argv)
                /*0-1*/ "show\0"  "flush\0";
        int command_num;
 
+       INIT_G();
+
        if (!*argv)
                return ipneigh_list_or_flush(argv, 0);