From a37888c929b1be5e472597048dd0ee2e395aca65 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 6 Jun 2009 14:22:30 -0700 Subject: [PATCH] systat - fix bug in vmmeter when switching to it via ':pv'. If systat is started with something and then switched to vmmeter via ':pv' vmmeter failed to display. Fixing the return value for the init function solves the problem. --- usr.bin/systat/vmmeter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/systat/vmmeter.c b/usr.bin/systat/vmmeter.c index e23112bcec..d798549e4f 100644 --- a/usr.bin/systat/vmmeter.c +++ b/usr.bin/systat/vmmeter.c @@ -54,7 +54,7 @@ getvmm(void) int initvmm(void) { - return 0; + return 1; } void @@ -173,7 +173,6 @@ openvmm(void) void closevmm(WINDOW *w) { - if (vmm_cur != NULL) free(vmm_cur); if (vmm_prev != NULL) -- 2.41.0