Commit 33f44db9 by Etienne Samson

examples: zero out our options memory before use

parent fb79d7d1
...@@ -46,6 +46,8 @@ static void print_usage(void) ...@@ -46,6 +46,8 @@ static void print_usage(void)
static void merge_options_init(merge_options *opts) static void merge_options_init(merge_options *opts)
{ {
memset(opts, 0, sizeof(*opts));
opts->heads = NULL; opts->heads = NULL;
opts->heads_count = 0; opts->heads_count = 0;
opts->annotated = NULL; opts->annotated = NULL;
......
Markdown is supported
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