Ensure GCC that p is not used uninitialized

master
Kristoffer Grönlund ago%!(EXTRA string=11 years)
parent 3202fb6a55
commit f298f7dabe
  1. 2
      stb.h

@ -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;

Loading…
Cancel
Save