* libltdl/ltdl.c (argz_insert): Actually, BEFORE can be NULL

when *PARGZ_LEN is non-NULL, so the assertion to the contrary was
bogus.
Reported by Bob Friesenhahn <bfreisen@simple.dallas.tx.us>
and Albert Chin-A-Young <china@thewrittenword.com>
This commit is contained in:
Gary V. Vaughan 2002-06-23 21:35:58 +00:00
parent 762853d3e2
commit a6eb30bff0
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2002-06-23 Gary V. Vaughan <gary@gnu.org>
* libltdl/ltdl.c (argz_insert): Actually, BEFORE can be NULL
when *PARGZ_LEN is non-NULL, so the assertion to the contrary was
bogus.
Reported by Bob Friesenhahn <bfreisen@simple.dallas.tx.us>
and Albert Chin-A-Young <china@thewrittenword.com>
2002-06-21 Gary V. Vaughan <gary@gnu.org>
* libltdl/ltdl.c (foreach_dirinpath): Ensure that filename is '\0'

View File

@ -542,11 +542,6 @@ argz_insert (pargz, pargz_len, before, entry)
assert (pargz_len);
assert (entry && *entry);
/* Either PARGZ/PARGZ_LEN is empty and BEFORE is NULL,
or BEFORE points into an address within the ARGZ vector. */
assert ((!*pargz && !*pargz_len && !before)
|| ((*pargz <= before) && (before < (*pargz + *pargz_len))));
/* No BEFORE address indicates ENTRY should be inserted after the
current last element. */
if (!before)