Clean up gcc warning in MULTIBYTE code.
This commit is contained in:
parent
6f668ee108
commit
fad6f2925c
@ -9,7 +9,7 @@
|
||||
* didn't really belong there.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.20 1999/02/13 23:22:42 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.21 1999/04/25 18:16:47 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -504,7 +504,7 @@ PQmblen(unsigned char *s)
|
||||
int encoding = -1;
|
||||
|
||||
str = getenv("PGCLIENTENCODING");
|
||||
if (str && *str != NULL)
|
||||
if (str && *str != '\0')
|
||||
encoding = pg_char_to_encoding(str);
|
||||
if (encoding < 0)
|
||||
encoding = MULTIBYTE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user