]> granicus.if.org Git - postgresql/commitdiff
change comparison char* and NULL to char* and '\0'. This should be
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 29 Mar 1999 08:19:36 +0000 (08:19 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 29 Mar 1999 08:19:36 +0000 (08:19 +0000)
more portable way.

src/interfaces/libpq/fe-connect.c

index 83480c842a4139851fc5c7cd9f4a5ac6868e1f58..cfc3e36b7f98d86ad0bf9ab448016673b12dae4a 100644 (file)
@@ -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)