]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (argz_insert): Actually, BEFORE can be NULL
authorGary V. Vaughan <gary@gnu.org>
Sun, 23 Jun 2002 21:35:58 +0000 (21:35 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 23 Jun 2002 21:35:58 +0000 (21:35 +0000)
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>

ChangeLog
libltdl/ltdl.c

index 6dcfce2bcb81d8f4705a3c7da037ca6b6c6f3165..ab932581da7e4e24c6b834537a945adc08e06a69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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'
index 41e6ee3e3e7877449dced1b5b4b45b0c8ed4e298..57fb5af874fb111e99c689c7814130cdcb20a1f3 100644 (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)