From 230d659fccaa63fcac215b77a8447c2230dce2df Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Fri, 2 Feb 2001 20:38:53 +0000 Subject: [PATCH] * libltdl/ltdl.c (load_deplibs): Make sure the depcount is reset, even when deplibs are not used because of the patch below. --- ChangeLog | 5 ++++- libltdl/ltdl.c | 9 +++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee31ba347..6fa54e67a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -2001-02-01 Gary V. Vaughan +2001-02-02 Gary V. Vaughan + + * libltdl/ltdl.c (load_deplibs): Make sure the depcount is reset, + even when deplibs are not used because of the patch below. * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): If we know that the host architecture automatically loads deplibs, then... diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index e39e518c0..4e138ca2b 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1565,17 +1565,18 @@ load_deplibs(handle, deplibs) lt_dlhandle handle; char *deplibs; { - int ret = 0; - #if LTDL_DLOPEN_DEPLIBS - char *p, *save_search_path; int depcount = 0; int i; char **names = 0; +#endif + int ret = 0; - ret = 1; handle->depcount = 0; + +#if LTDL_DLOPEN_DEPLIBS + ret = 1; if (!deplibs) { return 0; -- 2.47.3