mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-05 22:49:37 -04:00
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:
committed by
Atomic Bot
parent
460fb8e267
commit
ff93f89eb5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user