slang/slcommon.c (utf8_enable): Use '==' instead of '=' for comparison.
Этот коммит содержится в:
родитель
f4e0124cd2
Коммит
d3ce4129e0
@ -1,3 +1,8 @@
|
||||
2006-02-01 Vladimir Nadvorknik <nadvornik@suse.cz>
|
||||
|
||||
* slcommon.c (utf8_enable_function): Use '==' instead of '=' for
|
||||
comparison. Reported by David Binderman.
|
||||
|
||||
2006-01-18 Pavel Shirshov <me@pavelsh.pp.ru>
|
||||
|
||||
* include/slang.h: comment out declaration of SLmemset(), SLmemchr(),
|
||||
|
@ -104,9 +104,9 @@ static int utf8_enable (int mode)
|
||||
locale = setlocale (LC_ALL, "");
|
||||
|
||||
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)))
|
||||
&& ((NULL == (locale = getenv ("LC_ALL"))) || (*locale == 0))
|
||||
&& ((NULL == (locale = getenv ("LC_CTYPE"))) || (*locale == 0))
|
||||
&& ((NULL == (locale = getenv ("LANG"))) || (*locale == 0)))
|
||||
return 0;
|
||||
|
||||
/* setlocale man page says the return value is something like:
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user