From: Jim Warner Date: Mon, 20 Nov 2017 06:00:00 +0000 (-0600) Subject: vmstat: respond to enhanced parameter check X-Git-Tag: v4.0.0~673 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=108ac50039e179d0ca0beeb5745e93051544d1e1;p=procps-ng vmstat: respond to enhanced parameter check Signed-off-by: Jim Warner --- diff --git a/vmstat.c b/vmstat.c index 866724b2..802f3ee5 100644 --- a/vmstat.c +++ b/vmstat.c @@ -697,7 +697,7 @@ static void slabformat (void) { #define MAX_ITEMS (int)(sizeof(node_items) / sizeof(node_items[0])) #define slabVAL(e,t) SLABINFO_VAL(e, t, p, slab_info) - struct slabinfo_info *slab_info; + struct slabinfo_info *slab_info = NULL; struct slabinfo_reap *reaped; int i, j; enum slabinfo_item node_items[] = {