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 authored and Atomic Bot committed 2017-05-05 14:58:03 +00:00
1 parent 59897f2b84
commit f1da7ec300
1 file changed
+2
+2
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 *);