From fc27fec0543009dbb6c6ca002283564215aae4b1 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 12 Feb 2013 11:37:53 +0100 Subject: Fix Variable 'TimeBuffer' is not assigned a value See http://nabble.documentfoundation.org/Cppcheck-TimeBuffer-is-not-assigned-a-value-in-basic-module-td4036591.html Change-Id: I2d67cecf3530301d49c43bbe397c5e975b2816b0 --- basic/source/comp/sbcomp.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx index 8f1f0812bce5..85d91aeac257 100644 --- a/basic/source/comp/sbcomp.cxx +++ b/basic/source/comp/sbcomp.cxx @@ -598,6 +598,7 @@ void dbg_traceStep( SbModule* pModule, sal_uInt32 nPC, sal_Int32 nCallLvl ) bSTMT = true; } char TimeBuffer[200]; + memset (TimeBuffer, 0, size(TimeBuffer)); #ifdef DBG_TRACE_PROFILING if( bPrintTimeStamp ) { -- cgit