aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2023-04-14 22:38:26 -0500
committerRob Landley <rob@landley.net>2023-04-14 22:38:26 -0500
commitacfcc9572fc7d61fd55042bc1b067dc41c312ad9 (patch)
treef87dfa0265ffd016bdd280f9e86fe6df108d7cfe
parentfdba43ea0af4bee99676019cc818d982e969e9f9 (diff)
downloadtoybox-acfcc9572fc7d61fd55042bc1b067dc41c312ad9.tar.gz
Silence another "warning: is never used uninitialized" false positive from gcc.
-rw-r--r--toys/other/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c
index ebe5399e..94502f1f 100644
--- a/toys/other/vmstat.c
+++ b/toys/other/vmstat.c
@@ -49,7 +49,7 @@ static void get_vmstat_proc(struct vmstat_proc *vmsp)
"Buffers:", "Cached:", "SwapFree:", "SwapTotal:", "SReclaimable:",
"/proc/vmstat", "pgpgin ", "pgpgout ", "pswpin ", "pswpout " };
unsigned long long *new = (void *)vmsp;
- char *p, *name = name, *file = 0;
+ char *p = 0, *name = name, *file = 0;
int i, j;
// We use vmstuff to fill out vmstat_proc as an array of long long: