*: hopefully all setup_common_bufsiz() are in place
[oweals/busybox.git] / networking / libiproute / iproute.c
index 34d4f4758a40b3b4c2e51b6c06a021cae0f677b9..e674e9a0d914b0c8df01a6c5942135a9324dc26d 100644 (file)
@@ -45,6 +45,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)
 {
@@ -903,6 +904,8 @@ int FAST_FUNC do_iproute(char **argv)
        unsigned flags = 0;
        int cmd = RTM_NEWROUTE;
 
+       INIT_G();
+
        if (!*argv)
                return iproute_list_or_flush(argv, 0);