lib: Don't try to read uninitialized memory

Oddly this uninitialized memory read leads to a seg fault on ARM but
not on x86_64.

Closes: #1621
Approved by: mwleeds
This commit is contained in:
Matthew Leeds
2018-04-26 15:58:13 -07:00
committed by Atomic Bot
parent 460fb8e267
commit ff93f89eb5

View File

@@ -326,7 +326,7 @@ flatpak_remote_ref_new (FlatpakCollectionRef *coll_ref,
{
FlatpakRefKind kind = FLATPAK_REF_KIND_APP;
guint64 download_size = 0, installed_size = 0;
const char *metadata;
const char *metadata = NULL;
g_autoptr(GBytes) metadata_bytes = NULL;
g_auto(GStrv) parts = NULL;
FlatpakRemoteRef *ref;