From 648fac47723bc3578a11d88314a2b4769268f511 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 14 May 2012 15:04:10 +0100 Subject: [PATCH] demo/tut3.c: memset options to 0 before modifying options.verbose was used uninitialized. --- demo/tut3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/tut3.c b/demo/tut3.c index e62a270..1f520af 100644 --- a/demo/tut3.c +++ b/demo/tut3.c @@ -77,6 +77,7 @@ int main(int argc, char *argv[]) struct parsed_options options; + memset(&options, 0, sizeof(options)); /* The following variables used in this demo * can be modified by command line * options. When modifying this demo, you may want to -- 2.26.2