Ensure GCC that p is not used uninitialized

pull/51/head
Kristoffer Grönlund 2014-10-27 09:05:40 +01:00
parent 3202fb6a55
commit f298f7dabe
1 changed files with 1 additions and 1 deletions

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;
}
default: assert(0); /* NOTREACHED */
default: p = NULL; assert(0); /* NOTREACHED */
}
++stb_alloc_count_alloc;