[PATCH:xlsfonts 1/3] Remove unneeded Malloc function

Julien Cristau jcristau at debian.org
Sat Jan 29 02:33:02 PST 2011


On Fri, Jan 28, 2011 at 20:08:50 -0800, Alan Coopersmith wrote:

> The only place it was called was in Realloc, if the initial pointer was
> NULL, but ANSI C89 already guarantees realloc(NULL, size) will be handled
> as malloc(size), so we don't need to handle that case ourselves.
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  dsimple.c |   20 +-------------------
>  dsimple.h |    1 -
>  2 files changed, 1 insertions(+), 20 deletions(-)
> 
Reviewed-by: Julien Cristau <jcristau at debian.org>

Cheers,
Julien


More information about the xorg-devel mailing list