From f298f7dabeea1a86e92d67a824d212ec59da6951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= Date: Mon, 27 Oct 2014 09:05:40 +0100 Subject: [PATCH] Ensure GCC that p is not used uninitialized --- stb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;