From: David Herrmann Date: Fri, 13 Jun 2014 16:38:15 +0000 (+0200) Subject: util: fix multiply-alloc helpers with size==0 X-Git-Tag: v215~411 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=368504f485d09b9fd48b7538e71981f648eb32bb;hp=368504f485d09b9fd48b7538e71981f648eb32bb util: fix multiply-alloc helpers with size==0 Passing 0 to malloc() is not required to return NULL. Therefore, don't bail out if "b" is 0. This is not of importance to the existing helpers, but the upcoming realloc_multiply() requires this. To keep consistence, we keep the same behavior for the other helpers. ---