From 2bf6595a2a5527ff64f9083f2434aa344c9637d9 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 4 Apr 2002 04:54:44 +0000 Subject: Also look for libinsure.so where the full version installs it. --- source/lib/util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/lib/util.c') diff --git a/source/lib/util.c b/source/lib/util.c index d8bc17221e2..7e2ad496395 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -2201,6 +2201,11 @@ int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6) static void *h; h = dlopen("/usr/local/parasoft/insure++lite/lib.linux2/libinsure.so", RTLD_LAZY); fn = dlsym(h, "_Insure_trap_error"); + + if (!h || h == _Insure_trap_error) { + h = dlopen("/usr/local/parasoft/lib.linux2/libinsure.so", RTLD_LAZY); + fn = dlsym(h, "_Insure_trap_error"); + } } ret = fn(a1, a2, a3, a4, a5, a6); -- cgit