From: Ralf Wildenhues Date: Thu, 30 Aug 2007 18:18:31 +0000 (+0000) Subject: * libltdl/ltdl.c (has_library_ext): Remove dead code. X-Git-Tag: release-2-1b~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56e12a2db604549b018a52b7c3c573454f4bccbe;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (has_library_ext): Remove dead code. Coverity report CID 561 against Open MPI via Jeff Squyres. --- diff --git a/ChangeLog b/ChangeLog index 265aff366..9a35e48c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-30 Ralf Wildenhues + + * libltdl/ltdl.c (has_library_ext): Remove dead code. + Coverity report CID 561 against Open MPI via Jeff Squyres. + 2007-08-29 Ralf Wildenhues * libltdl/slist.c (slist_remove): When a matching item is found, diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 75c7a6e55..b1c3228a0 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1479,11 +1479,9 @@ static int 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))