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

Commitfad6f29

Browse files
committed
Clean up gcc warning in MULTIBYTE code.
1 parent6f668ee commitfad6f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/libpq/fe-print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* didn't really belong there.
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.20 1999/02/13 23:22:42 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.21 1999/04/25 18:16:47 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -504,7 +504,7 @@ PQmblen(unsigned char *s)
504504
intencoding=-1;
505505

506506
str=getenv("PGCLIENTENCODING");
507-
if (str&&*str!=NULL)
507+
if (str&&*str!='\0')
508508
encoding=pg_char_to_encoding(str);
509509
if (encoding<0)
510510
encoding=MULTIBYTE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp