From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: [PATCH 10/29] libxc: initalize stdio loggers' progress_last_percent values to 0 Date: Wed, 30 Oct 2013 20:51:46 +1300 Message-ID: <1383119525-26033-11-git-send-email-mattjd@gmail.com> References: <1383119525-26033-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383119525-26033-1-git-send-email-mattjd@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Matthew Daley , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org ...otherwise they are undefined in the first progress callback. Coverity-ID: 1056055 Signed-off-by: Matthew Daley --- tools/libxc/xtl_logger_stdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxc/xtl_logger_stdio.c b/tools/libxc/xtl_logger_stdio.c index 2e73c86..aa5501f 100644 --- a/tools/libxc/xtl_logger_stdio.c +++ b/tools/libxc/xtl_logger_stdio.c @@ -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); } -- 1.7.10.4