diff --git a/block/ssh.c b/block/ssh.c
index b049a16eb9bcb3f322ce4c10c816d0875cdad8ae..8890a0c4ba97d317d362c11f6b71146b7a17dba3 100644
--- a/block/ssh.c
+++ b/block/ssh.c
@@ -556,6 +556,7 @@ static QemuOptsList ssh_runtime_opts = {
             .type = QEMU_OPT_STRING,
             .help = "Defines how and what to check the host key against",
         },
+        { /* end of list */ }
     },
 };