libxc: initalize stdio loggers' progress_last_percent values to 0

...otherwise they are undefined in the first progress callback.

Coverity-ID: 1056055
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Matthew Daley authored and Ian Campbell committed 2013-10-31 21:55:51 +00:00
1 parent e1fde2acce
commit 492da27a3e
1 file changed
+1
+1
View File
@@ -172,6 +172,7 @@ xentoollog_logger_stdiostream *xtl_createlogger_stdiostream
if (newlogger.flags & XTL_STDIOSTREAM_SHOW_DATE) tzset();
newlogger.progress_erase_len = 0;
newlogger.progress_last_percent = 0;
return XTL_NEW_LOGGER(stdiostream, newlogger);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.