libostree: Fix potential use of uninitialised memory in progress API

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #835
Approved by: cgwalters
This commit is contained in:
Philip Withnall 2017-05-05 15:16:46 +01:00 committed by Atomic Bot
parent 59897f2b84
commit f1da7ec300

View File

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