Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2d5949

Browse files
committed
change comparison char* and NULL to char* and '\0'. This should be
more portable way.
1 parentc537d42 commitc2d5949

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
#ifdefMULTIBYTE
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)

[8]ページ先頭

©2009-2025 Movatter.jp