mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
examples: zero out our options memory before use
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user