Commit 794228e1 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correctly indicate the end of the list of parsed arguments to avoid a stack buffer overflow.

parent f37c38a3
......@@ -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),
struct argparse argparse;
argparse_init(&argparse, options, swift_usage, 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment