forked from Mirrors/flatpak-builder
Fix possible read of uninitialized variable
parent
071561637a
commit
2abe3ff911
|
@ -72,7 +72,7 @@ xdg_app_builtin_update (int argc, char **argv, GCancellable *cancellable, GError
|
|||
const char *branch = NULL;
|
||||
g_autofree char *ref = NULL;
|
||||
g_autofree char *repository = NULL;
|
||||
gboolean was_updated;
|
||||
gboolean was_updated = FALSE;
|
||||
gboolean is_app;
|
||||
g_auto(GLnxLockFile) lock = GLNX_LOCK_FILE_INIT;
|
||||
|
||||
|
|
|
@ -797,7 +797,7 @@ xdg_app_installation_update (XdgAppInstallation *self,
|
|||
g_autoptr(OstreeAsyncProgress) ostree_progress = NULL;
|
||||
g_autofree char *remote_name = NULL;
|
||||
XdgAppInstalledRef *result = NULL;
|
||||
gboolean was_updated;
|
||||
gboolean was_updated = FALSE;
|
||||
g_auto(GLnxLockFile) lock = GLNX_LOCK_FILE_INIT;
|
||||
|
||||
ref = xdg_app_compose_ref (kind == XDG_APP_REF_KIND_APP, name, branch, arch, error);
|
||||
|
|
Loading…
Reference in New Issue