From: Tom Lane Date: Wed, 26 Nov 2008 16:23:11 +0000 (+0000) Subject: Tweak new PQExpBufferBroken macro to suppress warnings from pickier X-Git-Tag: recoveryinfrav9~286 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=ebbaa7ab4d5bcbe9f1c6bec8f1fc2a6c9c918350;p=users%2Fsimon%2Fpostgres.git Tweak new PQExpBufferBroken macro to suppress warnings from pickier versions of gcc. --- diff --git a/src/interfaces/libpq/pqexpbuffer.h b/src/interfaces/libpq/pqexpbuffer.h index 6c3705b49e..66e0724649 100644 --- a/src/interfaces/libpq/pqexpbuffer.h +++ b/src/interfaces/libpq/pqexpbuffer.h @@ -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.