Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cbb3e1c

Browse files
committed
Tweak new PQExpBufferBroken macro to suppress warnings from pickier
versions of gcc.
1 parent ba34215 commit cbb3e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/pqexpbuffer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1919
* Portions Copyright (c) 1994, Regents of the University of California
2020
*
21-
* $PostgreSQL: pgsql/src/interfaces/libpq/pqexpbuffer.h,v 1.20 2008/11/26 00:26:23 tgl Exp $
21+
* $PostgreSQL: pgsql/src/interfaces/libpq/pqexpbuffer.h,v 1.21 2008/11/26 16:23:11 tgl Exp $
2222
*
2323
*-------------------------------------------------------------------------
2424
*/
@@ -57,7 +57,7 @@ typedef PQExpBufferData *PQExpBuffer;
5757
*------------------------
5858
*/
5959
#define PQExpBufferBroken(str) \
60-
(!(str) || (str)->maxlen == 0)
60+
((str) == NULL || (str)->maxlen == 0)
6161

6262
/*------------------------
6363
* Initial size of the data buffer in a PQExpBuffer.

0 commit comments

Comments
 (0)