summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-19 12:38:03 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-19 12:38:03 +0100
commit2abe3ff9119b8167122f61a309d6f4971d37b9e0 (patch)
treee892086b024b03acdcc025a35b9cd03aca7c64be /lib
parent071561637a8dd3da640de612db44a5c11e62d8f5 (diff)
downloadxdg-app-2abe3ff9119b8167122f61a309d6f4971d37b9e0.tar.gz
Fix possible read of uninitialized variable
Diffstat (limited to 'lib')
-rw-r--r--lib/xdg-app-installation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xdg-app-installation.c b/lib/xdg-app-installation.c
index 56eda68..72d5724 100644
--- a/lib/xdg-app-installation.c
+++ b/lib/xdg-app-installation.c
@@ -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);