Fix use of uninitialized memory in ostree_builtin_checksum()

https://bugzilla.gnome.org/show_bug.cgi?id=705968
This commit is contained in:
Stef Walter authored and Stef Walter committed 2013-08-17 07:07:54 +02:00
1 parent aecac2fd8e
commit 349d7958f3
1 file changed
+4
+4
View File
@@ -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);