diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-11-26 16:23:11 +0000 | 
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-11-26 16:23:11 +0000 | 
| commit | cbb3e1cda7b6d571d5fe1501495f4ed8fb8ab965 (patch) | |
| tree | 481fd9dd9f2f5ef9dfe8612fa908980da5f324eb /src/interfaces/libpq/pqexpbuffer.h | |
| parent | ba34215269934c2a772548af2e3a59dc15daa88c (diff) | |
Tweak new PQExpBufferBroken macro to suppress warnings from pickier
versions of gcc.
Diffstat (limited to 'src/interfaces/libpq/pqexpbuffer.h')
| -rw-r--r-- | src/interfaces/libpq/pqexpbuffer.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/interfaces/libpq/pqexpbuffer.h b/src/interfaces/libpq/pqexpbuffer.h index 3acca24b569..8e7a907d0b3 100644 --- a/src/interfaces/libpq/pqexpbuffer.h +++ b/src/interfaces/libpq/pqexpbuffer.h @@ -18,7 +18,7 @@   * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group   * Portions Copyright (c) 1994, Regents of the University of California   * - * $PostgreSQL: pgsql/src/interfaces/libpq/pqexpbuffer.h,v 1.20 2008/11/26 00:26:23 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/pqexpbuffer.h,v 1.21 2008/11/26 16:23:11 tgl Exp $   *   *-------------------------------------------------------------------------   */ @@ -57,7 +57,7 @@ typedef PQExpBufferData *PQExpBuffer;   *------------------------   */  #define PQExpBufferBroken(str)  \ -	(!(str) || (str)->maxlen == 0) +	((str) == NULL || (str)->maxlen == 0)  /*------------------------   * Initial size of the data buffer in a PQExpBuffer. | 
