Ensure GCC that p is not used uninitialized

This commit is contained in:
Kristoffer Grönlund 2014-10-27 09:05:40 +01:00
parent 3202fb6a55
commit f298f7dabe

2
stb.h
View File

@ -2771,7 +2771,7 @@ static void * malloc_base(void *context, size_t size, stb__alloc_type t, int ali
break; break;
} }
default: assert(0); /* NOTREACHED */ default: p = NULL; assert(0); /* NOTREACHED */
} }
++stb_alloc_count_alloc; ++stb_alloc_count_alloc;