Clean up gcc warning in MULTIBYTE code.

This commit is contained in:
Tom Lane 1999-04-25 18:16:47 +00:00
parent 6f668ee108
commit fad6f2925c

View File

@ -9,7 +9,7 @@
* didn't really belong there. * didn't really belong there.
* *
* IDENTIFICATION * 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; int encoding = -1;
str = getenv("PGCLIENTENCODING"); str = getenv("PGCLIENTENCODING");
if (str && *str != NULL) if (str && *str != '\0')
encoding = pg_char_to_encoding(str); encoding = pg_char_to_encoding(str);
if (encoding < 0) if (encoding < 0)
encoding = MULTIBYTE; encoding = MULTIBYTE;