projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b50d77b
)
Tweak new PQExpBufferBroken macro to suppress warnings from pickier
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 26 Nov 2008 16:23:11 +0000
(16:23 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 26 Nov 2008 16:23:11 +0000
(16:23 +0000)
versions of gcc.
src/interfaces/libpq/pqexpbuffer.h
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/pqexpbuffer.h
b/src/interfaces/libpq/pqexpbuffer.h
index 6c3705b49e2c348f120dec1c95d07f00d74780b5..66e0724649ef26cf3e1fbac296f2ca4ff08db21a 100644
(file)
--- 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.