diff --git a/libs/util/zone.c b/libs/util/zone.c index 8d5a1ba8b..5e4651fc4 100644 --- a/libs/util/zone.c +++ b/libs/util/zone.c @@ -810,7 +810,8 @@ Cache_Profile (void) (sizes[i] * 100) / total); } Sys_Printf ("Total allocations: %d in %d allocations, average of" - " %d per allocation\n", total, count, total / count); + " %d per allocation\n", total, count, + count ? total / count : -1); } static void