Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dde7fb7

Browse files
committed
Use [FLEXIBLE_ARRAY_MEMBER] not [1] in MultiSortSupportData.
This struct seems to have not gotten the word about preferred coding style for variable-length arrays.
1 parent dbb9841 commit dde7fb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/include/statistics/extended_stats_internal.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ typedef struct DimensionInfo
4343
/* multi-sort */
4444
typedef struct MultiSortSupportData
4545
{
46-
int ndims; /* number of dimensions supported by the */
47-
SortSupportData ssup[1]; /* sort support data for each dimension */
46+
int ndims; /* number of dimensions */
47+
/* sort support data for each dimension: */
48+
SortSupportData ssup[FLEXIBLE_ARRAY_MEMBER];
4849
} MultiSortSupportData;
4950

5051
typedef MultiSortSupportData *MultiSortSupport;

0 commit comments

Comments
 (0)