diff --git a/stb.h b/stb.h index 083f0d4..b5e821e 100644 --- a/stb.h +++ b/stb.h @@ -2771,7 +2771,7 @@ static void * malloc_base(void *context, size_t size, stb__alloc_type t, int ali break; } - default: assert(0); /* NOTREACHED */ + default: p = NULL; assert(0); /* NOTREACHED */ } ++stb_alloc_count_alloc;