+2019-02-28 Michal Privoznik <mprivozn@redhat.com>
+
+ alloca, tsearch-tests: Write NULL for the null pointer.
+ * lib/alloca.c (i00afunc): Write NULL instead of 0.
+ * tests/test-tsearch.c (mangle_tree): Likewise.
+
2019-03-09 Bruno Haible <bruno@clisp.org>
strfmon_l: Fix -fsanitize=address finding.
/* There must be at least one stack segment. Therefore it is
a fatal error if "trailer" is null. */
- if (trailer == 0)
+ if (trailer == NULL)
abort ();
/* Discard segments that do not contain our argument address. */
- while (trailer != 0)
+ while (trailer != NULL)
{
block = (long *) trailer->this_address;
size = trailer->this_size;
- if (block == 0 || size == 0)
+ if (block == NULL || size == 0)
abort ();
trailer = (struct stk_trailer *) trailer->link;
if ((block <= address) && (address < (block + size)))
result = address - block;
- if (trailer == 0)
+ if (trailer == NULL)
{
return result;
}
result += trailer->this_size;
trailer = (struct stk_trailer *) trailer->link;
}
- while (trailer != 0);
+ while (trailer != NULL);
/* We are done. Note that if you present a bogus address (one
not in any segment), you will get a different number back, formed
error = 1;
}
elem = tsearch (x + j, root, cmp_fn);
- if (elem == 0
+ if (elem == NULL
|| tfind (x + j, (void *const *) root, cmp_fn) == NULL)
{
fputs ("Couldn't find element after it was added.\n",