bug#68440: small patch to ltdl.c to silence clang warnings

Mike Frysinger <[email protected]> Sun, 14 Jan 2024 03:34:38 +0000 (UTC)
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <[email protected]>
> --- libltdl/ltdl.c
> +++ libltdl/ltdl.c
> @@ -1372,7 +1372,7 @@
>
> -	  if (!file && *sys_dlsearch_path)
> +	  if ((!file) & *sys_dlsearch_path)
> ...
> -      if (!is_done && *sys_dlsearch_path)
> +      if ((!is_done) & *sys_dlsearch_path)

this is def incorrect.  you're doing a bitwise operation on a pointer.

can you please post example compiler output ?
-mike