diff --git a/lib/ts_fsm.c b/lib/ts_fsm.c
index 9c873cadab7c6cb946044584398c9b8aa93134eb..ab749ec10ab538550729e5cc570107b683038a23 100644
--- a/lib/ts_fsm.c
+++ b/lib/ts_fsm.c
@@ -32,7 +32,7 @@
 struct ts_fsm
 {
 	unsigned int		ntokens;
-	struct ts_fsm_token	tokens[0];
+	struct ts_fsm_token	tokens[];
 };
 
 /* other values derived from ctype.h */