view modules/free @ 40211:5f58d2ac35ea

unistr/u8-cmp: Fix undefined behaviour. Reported by Jeffrey Walton <noloader@gmail.com>. * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
author Bruno Haible <bruno@clisp.org>
date Fri, 08 Mar 2019 20:38:22 +0100
parents fff577282e62
children
line wrap: on
line source

Description:
Work around incompatibility on older systems where free (NULL) fails.

Notice:
This module is obsolete.

Files:
lib/free.c
m4/free.m4

Depends-on:

configure.ac:
gl_FUNC_FREE
if test $gl_cv_func_free = no; then
  AC_LIBOBJ([free])
  gl_PREREQ_FREE
fi

Makefile.am:

Include:
<stdlib.h>

License:
GPL

Maintainer:
Paul Eggert