From f61316c4f4f13dff940f199f1482bf42c4a51600 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 23 Oct 2021 14:50:40 -0600 Subject: [PATCH] tt_ldpath: fix broken logic in find_lib --- cde/lib/tt/lib/util/tt_ldpath.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/lib/tt/lib/util/tt_ldpath.C b/cde/lib/tt/lib/util/tt_ldpath.C index 1980792ee..f65d15d33 100644 --- a/cde/lib/tt/lib/util/tt_ldpath.C +++ b/cde/lib/tt/lib/util/tt_ldpath.C @@ -68,7 +68,7 @@ find_lib(_Tt_string &cpath, _Tt_string &libname, _Tt_string &fullpath) fullpath = cpath.cat("/").cat(libname); if (stat((char *)fullpath, &st) == 0) { result = 1; - } else if (!(cdir = opendir((char *)cpath))) { + } else if ((cdir = opendir((char *)cpath))) { // need to find a version in cpath if possible max_vmajor = -1; max_vminor = -1;