Applied to HEAD; this problem isn't present in branch-1-5.
Cheers,
Ralf
2007-08-30 Ralf Wildenhues <[EMAIL PROTECTED]>
* libltdl/ltdl.c (has_library_ext): Remove dead code.
Coverity report CID 561 against Open MPI via Jeff Squyres.
Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.256
diff -u -r1.256 ltdl.c
--- libltdl/ltdl.c 15 Aug 2007 21:38:31 -0000 1.256
+++ libltdl/ltdl.c 30 Aug 2007 18:14:55 -0000
@@ -1479,11 +1479,9 @@
has_library_ext (const char *filename)
{
char * ext = 0;
- size_t len;
assert (filename);
- len = LT_STRLEN (filename);
ext = strrchr (filename, '.');
if (ext && ((streq (ext, archive_ext))