summaryrefslogtreecommitdiff
path: root/lib/lib_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib_vty.c')
-rw-r--r--lib/lib_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_vty.c b/lib/lib_vty.c
index 787da08e28..9c927ca4af 100644
--- a/lib/lib_vty.c
+++ b/lib/lib_vty.c
@@ -93,7 +93,7 @@ static int qmem_walker(void *arg, struct memgroup *mg, struct memtype *mt)
#endif
);
} else {
- if (mt->n_alloc != 0) {
+ if (mt->n_max != 0) {
char size[32];
snprintf(size, sizeof(size), "%6zu", mt->size);
#ifdef HAVE_MALLOC_USABLE_SIZE