From 794228e10e6b0acea5cb0dade6e616b74b677b68 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 1 Dec 2018 15:43:00 +0100
Subject: [PATCH] Correctly indicate the end of the list of parsed arguments to
 avoid a stack buffer overflow.

---
 examples/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/main.c b/examples/main.c
index e075151c62..5f914fc333 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -242,6 +242,7 @@ int main(int argc, char *argv[]) {
       OPT_INTEGER('Y', "threadpool-dumps", &dump_threadpool,
                   "Time-step frequency at which threadpool tasks are dumped.",
                   NULL, 0, 0),
+      OPT_END(),
   };
   struct argparse argparse;
   argparse_init(&argparse, options, swift_usage, 0);
-- 
GitLab