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-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'
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)
goto cleanup;
}
- assert (filenamesize > lendir);
+ assert (filenamesize > lendir);
strcpy (filename, dir_name);
if (base_name && *base_name)