demo/tut3.c: memset options to 0 before modifying
options.verbose was used uninitialized.
This commit is contained in:
parent
d1ad074b8c
commit
648fac4772
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue