aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-02-21 01:46:43 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-02-21 01:46:43 -0500
commitf2874feb7c4e71200539c0287544eeebd8fcb3d4 (patch)
tree27c53b200f890ce2d568cd12674f93644678e3eb /src/backend
parent33b2a2c97f3dd4cf8bbc2c020e34129886367b72 (diff)
downloadpostgresql-f2874feb7c4e71200539c0287544eeebd8fcb3d4.tar.gz
postgresql-f2874feb7c4e71200539c0287544eeebd8fcb3d4.zip
Some more FLEXIBLE_ARRAY_MEMBER fixes.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/optimizer/plan/setrefs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c
index 57195e5d68f..ec828cdd9fb 100644
--- a/src/backend/optimizer/plan/setrefs.c
+++ b/src/backend/optimizer/plan/setrefs.c
@@ -41,9 +41,8 @@ typedef struct
int num_vars; /* number of plain Var tlist entries */
bool has_ph_vars; /* are there PlaceHolderVar entries? */
bool has_non_vars; /* are there other entries? */
- /* array of num_vars entries: */
- tlist_vinfo vars[1]; /* VARIABLE LENGTH ARRAY */
-} indexed_tlist; /* VARIABLE LENGTH STRUCT */
+ tlist_vinfo vars[FLEXIBLE_ARRAY_MEMBER]; /* has num_vars entries */
+} indexed_tlist;
typedef struct
{