mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
tt_ldpath: fix broken logic in find_lib
This commit is contained in:
parent
03c71dd23e
commit
f61316c4f4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue