diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-02-21 01:46:43 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-02-21 01:46:43 -0500 |
| commit | f2874feb7c4e71200539c0287544eeebd8fcb3d4 (patch) | |
| tree | 27c53b200f890ce2d568cd12674f93644678e3eb /src/backend/optimizer/plan/setrefs.c | |
| parent | 33b2a2c97f3dd4cf8bbc2c020e34129886367b72 (diff) | |
| download | postgresql-f2874feb7c4e71200539c0287544eeebd8fcb3d4.tar.gz | |
Some more FLEXIBLE_ARRAY_MEMBER fixes.
Diffstat (limited to 'src/backend/optimizer/plan/setrefs.c')
| -rw-r--r-- | src/backend/optimizer/plan/setrefs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c index 57195e5d68..ec828cdd9f 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 { |
