Fix possible read of uninitialized variable

tingping/wmclass
Alexander Larsson 2016-01-19 12:38:03 +01:00
parent 071561637a
commit 2abe3ff911
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);