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 c537d42 commit c2d5949Copy full SHA for c2d5949
src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.94 1999/02/21 03:49:52 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.95 1999/03/29 08:19:36 ishii Exp $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -813,7 +813,7 @@ PQsetenv(PGconn *conn)
813
#ifdef MULTIBYTE
814
/* query server encoding */
815
env = getenv(envname);
816
- if (!env || *env == NULL)
+ if (!env || *env == '\0')
817
{
818
rtn = PQexec(conn, "select getdatabaseencoding()");
819
if (rtn && PQresultStatus(rtn) == PGRES_TUPLES_OK)
0 commit comments