Re: [slang-users] Suspicious code in slang-2.0.5



Hello Vladimir,

Good to see you again.

(From the slang user list: )
On Mon, 2006-01-30 at 17:39 +0100, Vladimir Nadvornik wrote:
> We got this bugreport from David Binderman <dcb314 hotmail com>:
> /usr/src/packages/BUILD/slang-2.0.5/src/slcommon.c(107): warning #187: use of
> "=" where "==" may have been intended

> Maybe the programmer intended
> 
>    if (((locale == NULL) || (*locale == 0))
>        && ((NULL == (locale = getenv ("LC_ALL"))) || (*locale == 0))
>        && ((NULL == (locale = getenv ("LC_CTYPE"))) || (*locale == 0))
>        && ((NULL == (locale = getenv ("LANG"))) || (*locale == 0)))
>      return 0;

Committed to mc CVS.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]