From: Tatsuo Ishii <ishii@postgresql.org>
Date: Mon, 29 Mar 1999 08:19:36 +0000 (+0000)
Subject: change comparison char* and NULL to char* and '\0'. This should be
X-Git-Tag: REL6_5~447
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2d59497df9e0e159587cee22ba20266b713e3e4;p=postgresql

change comparison char* and NULL to char* and '\0'. This should be
more portable way.
---

diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 83480c842a..cfc3e36b7f 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $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 $
  *
  *-------------------------------------------------------------------------
  */
@@ -813,7 +813,7 @@ PQsetenv(PGconn *conn)
 #ifdef MULTIBYTE
 	/* query server encoding */
 	env = getenv(envname);
-	if (!env || *env == NULL)
+	if (!env || *env == '\0')
 	{
 		rtn = PQexec(conn, "select getdatabaseencoding()");
 		if (rtn && PQresultStatus(rtn) == PGRES_TUPLES_OK)