diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-01-25 22:17:39 +0100 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2018-01-25 22:17:39 +0100 |
commit | 33f44db9d0a169493335708daa91d57288f13515 (patch) | |
tree | 9d37079451cdbebc1ea5a0e3e818b88c1b3a2e73 /examples | |
parent | fb79d7d12e7d8db55b6525cc4c70d16397aba867 (diff) | |
download | libgit2-33f44db9d0a169493335708daa91d57288f13515.tar.gz |
examples: zero out our options memory before use
Diffstat (limited to 'examples')
-rw-r--r-- | examples/merge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/merge.c b/examples/merge.c index d64397179..59982cb9b 100644 --- a/examples/merge.c +++ b/examples/merge.c @@ -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; |