examples: zero out our options memory before use

This commit is contained in:
Etienne Samson
2018-01-25 22:17:39 +01:00
parent fb79d7d12e
commit 33f44db9d0

View File

@@ -46,6 +46,8 @@ static void print_usage(void)
static void merge_options_init(merge_options *opts)
{
memset(opts, 0, sizeof(*opts));
opts->heads = NULL;
opts->heads_count = 0;
opts->annotated = NULL;