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:
parent
59897f2b84
commit
f1da7ec300
|
|
@ -331,6 +331,8 @@ ostree_async_progress_set (OstreeAsyncProgress *self,
|
||||||
if (self->dead)
|
if (self->dead)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
changed = FALSE;
|
||||||
|
|
||||||
va_start (ap, self);
|
va_start (ap, self);
|
||||||
|
|
||||||
for (key = va_arg (ap, const char *), format_string = va_arg (ap, const char *);
|
for (key = va_arg (ap, const char *), format_string = va_arg (ap, const char *);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue