diff options
author | Stef Walter <stefw@redhat.com> | 2013-08-14 10:20:41 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-08-17 07:07:54 +0200 |
commit | 349d7958f35fc04642a5be224ca36e6c6bc5b8ed (patch) | |
tree | 0fcdb1cc61234332fc4f82e0aaeea6e11bdc0545 /src/ostree/ot-builtin-checksum.c | |
parent | aecac2fd8e6a1701243f163287e5c974e066b41c (diff) | |
download | ostree-349d7958f35fc04642a5be224ca36e6c6bc5b8ed.tar.gz |
Fix use of uninitialized memory in ostree_builtin_checksum()
https://bugzilla.gnome.org/show_bug.cgi?id=705968
Diffstat (limited to 'src/ostree/ot-builtin-checksum.c')
-rw-r--r-- | src/ostree/ot-builtin-checksum.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ostree/ot-builtin-checksum.c b/src/ostree/ot-builtin-checksum.c index aa82a977..999bdd25 100644 --- a/src/ostree/ot-builtin-checksum.c +++ b/src/ostree/ot-builtin-checksum.c @@ -26,6 +26,8 @@ #include "ostree.h" #include "libgsystem.h" +#include <string.h> + static GOptionEntry options[] = { { NULL } }; @@ -61,6 +63,8 @@ ostree_builtin_checksum (int argc, char **argv, GFile *repo_path_path, GCancella gs_unref_object GFile *f = NULL; AsyncChecksumData data; + memset (&data, 0, sizeof (data)); + context = g_option_context_new ("FILENAME - Checksum a file or directory"); g_option_context_add_main_entries (context, options, NULL); |