From: Ian Abbott Date: Mon, 14 May 2012 14:04:10 +0000 (+0100) Subject: demo/tut3.c: memset options to 0 before modifying X-Git-Url: http://git.tremily.us/?p=comedilib.git;a=commitdiff_plain;h=648fac47723bc3578a11d88314a2b4769268f511 demo/tut3.c: memset options to 0 before modifying options.verbose was used uninitialized. --- 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