From: Philip Withnall Date: Fri, 5 May 2017 14:16:46 +0000 (+0100) Subject: libostree: Fix potential use of uninitialised memory in progress API X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~37^2~52 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f1da7ec300d2827460d138a0f316ad6b77501336;p=ostree.git libostree: Fix potential use of uninitialised memory in progress API Signed-off-by: Philip Withnall Closes: #835 Approved by: cgwalters --- 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 *);