summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-async-progress.c
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-05-05 15:16:46 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-05-05 14:58:03 +0000
commitf1da7ec300d2827460d138a0f316ad6b77501336 (patch)
treee05815b8752236daacb8acde671e55d95dde7f3b /src/libostree/ostree-async-progress.c
parent59897f2b8484e322a77f23cc0d532dbd3de6aac6 (diff)
downloadostree-f1da7ec300d2827460d138a0f316ad6b77501336.tar.gz
libostree: Fix potential use of uninitialised memory in progress API
Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #835 Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-async-progress.c')
-rw-r--r--src/libostree/ostree-async-progress.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libostree/ostree-async-progress.c b/src/libostree/ostree-async-progress.c
index 95556814..b879559e 100644
--- a/src/libostree/ostree-async-progress.c
+++ b/src/libostree/ostree-async-progress.c
@@ -331,6 +331,8 @@ ostree_async_progress_set (OstreeAsyncProgress *self,
if (self->dead)
goto out;
+ changed = FALSE;
+
va_start (ap, self);
for (key = va_arg (ap, const char *), format_string = va_arg (ap, const char *);