Skip to content

Commit c2d5949

Browse files
committed
change comparison char* and NULL to char* and '\0'. This should be
more portable way.
1 parent c537d42 commit c2d5949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.94 1999/02/21 03:49:52 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.95 1999/03/29 08:19:36 ishii Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -813,7 +813,7 @@ PQsetenv(PGconn *conn)
813813
#ifdef MULTIBYTE
814814
/* query server encoding */
815815
env = getenv(envname);
816-
if (!env || *env == NULL)
816+
if (!env || *env == '\0')
817817
{
818818
rtn = PQexec(conn, "select getdatabaseencoding()");
819819
if (rtn && PQresultStatus(rtn) == PGRES_TUPLES_OK)

0 commit comments

Comments
 (0)