Travis Cross 3c32dd3bc9 Return NULL from sub_alloc for zero size
When zero was passed for the size to `sub_alloc`, we were passing this
size on to `malloc` or `calloc`, which is unusual enough that static
analyzers warn about this (POSIX says that either NULL or a pointer
will be returned).

We'll instead just return NULL right away.
2014-08-22 02:47:04 +00:00
..
2007-08-06 19:24:10 +00:00
2010-10-03 05:53:07 -04:00
2010-10-03 05:53:07 -04:00
2010-10-03 05:53:07 -04:00
2010-10-03 05:53:07 -04:00
2007-05-08 19:14:10 +00:00
2013-11-29 22:16:49 -06:00
2013-04-24 12:09:35 -05:00
2012-10-27 08:24:01 +08:00
2012-06-25 06:38:29 +00:00
2013-11-29 22:16:49 -06:00
2014-01-27 06:57:05 +05:00