summaryrefslogtreecommitdiff
path: root/src/common/relpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/relpath.c')
-rw-r--r--src/common/relpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/relpath.c b/src/common/relpath.c
index 91efcedf70d..ad733d13635 100644
--- a/src/common/relpath.c
+++ b/src/common/relpath.c
@@ -37,6 +37,9 @@ const char *const forkNames[] = {
"init" /* INIT_FORKNUM */
};
+StaticAssertDecl(lengthof(forkNames) == (MAX_FORKNUM + 1),
+ "array length mismatch");
+
/*
* forkname_to_number - look up fork number by name
*