mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
* 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:
parent
762853d3e2
commit
a6eb30bff0
@ -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'
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user