8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f668ee commit fad6f29Copy full SHA for fad6f29
src/interfaces/libpq/fe-print.c
@@ -9,7 +9,7 @@
9
* didn't really belong there.
10
*
11
* IDENTIFICATION
12
- * $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 $
13
14
*-------------------------------------------------------------------------
15
*/
@@ -504,7 +504,7 @@ PQmblen(unsigned char *s)
504
int encoding = -1;
505
506
str = getenv("PGCLIENTENCODING");
507
- if (str && *str != NULL)
+ if (str && *str != '\0')
508
encoding = pg_char_to_encoding(str);
509
if (encoding < 0)
510
encoding = MULTIBYTE;
0 commit comments