Fix use of uninitialized memory in ostree_builtin_checksum()
https://bugzilla.gnome.org/show_bug.cgi?id=705968
This commit is contained in:
parent
aecac2fd8e
commit
349d7958f3
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ostree.h"
|
#include "ostree.h"
|
||||||
#include "libgsystem.h"
|
#include "libgsystem.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static GOptionEntry options[] = {
|
static GOptionEntry options[] = {
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
@ -61,6 +63,8 @@ ostree_builtin_checksum (int argc, char **argv, GFile *repo_path_path, GCancella
|
||||||
gs_unref_object GFile *f = NULL;
|
gs_unref_object GFile *f = NULL;
|
||||||
AsyncChecksumData data;
|
AsyncChecksumData data;
|
||||||
|
|
||||||
|
memset (&data, 0, sizeof (data));
|
||||||
|
|
||||||
context = g_option_context_new ("FILENAME - Checksum a file or directory");
|
context = g_option_context_new ("FILENAME - Checksum a file or directory");
|
||||||
g_option_context_add_main_entries (context, options, NULL);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue