mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 04:03:53 +00:00
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.