]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polished unused code.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 27 Aug 2011 12:34:04 +0000 (06:34 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 27 Aug 2011 12:34:04 +0000 (06:34 -0600)
The unused dlopen() call is actually useful to enable when lt_dlopen() reports
"file not found" errors for loadable modules that do exist but that Libtool
cannot load successfully due to undefined symbols or other errors.

This inability to correctly report a library loading error is a long-standing
Libtool bug, stemming from Libtool's desire to try and load several
differently named library files until one succeeds, losing true error
information in the process.

src/LoadableModule.cc

index faf96c541124765b0038d18aadfa87eba2d77e26..2a0f1202a36127a9365004f9a0efe0cffebd0037 100644 (file)
@@ -69,7 +69,7 @@ void *LoadableModule::openModule(int mode)
 #      if XSTD_USE_LIBLTDL
     return lt_dlopen(theName.termedBuf());
 #      else
-    return dlopen(theName.c_str(),
+    return dlopen(theName.termedBuf(),
                   mode == lmNow ? RTLD_NOW : RTLD_LAZY);
 #      endif
 }