From ebbaa7ab4d5bcbe9f1c6bec8f1fc2a6c9c918350 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 26 Nov 2008 16:23:11 +0000 Subject: [PATCH] Tweak new PQExpBufferBroken macro to suppress warnings from pickier versions of gcc. --- src/interfaces/libpq/pqexpbuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5