diff --git a/src/runtime.c b/src/runtime.c
index 5ede05612f43452ed53ae24666252c7ecdc2146e..ce2ad055974d977e7d426e3a0abf5a9723d4dac1 100644
--- a/src/runtime.c
+++ b/src/runtime.c
@@ -105,6 +105,8 @@ static const char * const libquals[] =
   "lib64",
   "lib32"
 };
+G_STATIC_ASSERT (G_N_ELEMENTS (libquals)
+                 == G_N_ELEMENTS (multiarch_tuples) - 1);
 
 static gboolean pv_runtime_use_host_graphics_stack (PvRuntime *self,
                                                     FlatpakBwrap *bwrap,