From 7aacc7b40ed7c6e5fc85ca103ddf1489fad68348 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 25 Feb 2021 02:07:40 -0500 Subject: [PATCH] demo: prep for NCOPTIONS_VERIFY_SIXEL #200 --- src/demo/demo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/demo/demo.c b/src/demo/demo.c index 2d2d20ebe..b69acc716 100644 --- a/src/demo/demo.c +++ b/src/demo/demo.c @@ -251,7 +251,6 @@ handle_opts(int argc, char** argv, notcurses_options* opts, char *renderfile = NULL; *json_output = NULL; int c; - memset(opts, 0, sizeof(*opts)); const struct option longopts[] = { { .name = "help", .has_arg = 0, .flag = NULL, .val = 'h', }, { .name = "version", .has_arg = 0, .flag = NULL, .val = 'V', }, @@ -522,7 +521,7 @@ int main(int argc, char** argv){ const char* spec; FILE* json = NULL; // emit JSON summary to this file? (-J) bool ignore_failures; // continue after a failure? (-k) - notcurses_options nopts; + notcurses_options nopts = {}; if((spec = handle_opts(argc, argv, &nopts, &ignore_failures, &json)) == NULL){ if(argv[optind] != NULL){ usage(*argv, EXIT_FAILURE);