]> granicus.if.org Git - procps-ng/commitdiff
vmstat: respond to enhanced <slabinfo> parameter check
authorJim Warner <james.warner@comcast.net>
Mon, 20 Nov 2017 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Wed, 20 Dec 2017 10:18:54 +0000 (21:18 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
vmstat.c

index 866724b20dc656049f0ecd1dd6a15f7bd1f07754..802f3ee5375f4780592169b69b6320caca5f371d 100644 (file)
--- 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[] = {