[Libreoffice-commits] core.git: unotools/source
Tor Lillqvist
tml at iki.fi
Mon May 13 02:50:09 PDT 2013
unotools/source/misc/datetime.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ef8a4af30a3261d92311c7c76af9cb9b123d7a54
Author: Tor Lillqvist <tml at iki.fi>
Date: Mon May 13 12:47:00 2013 +0300
WaE: 'bFrac' may be used uninitialized in this function
Actually it isn't (I think), but let's silence the compiler.
Thanks to mjw for noticing and pointing out this warning on IRC.
Change-Id: I78885a6dac0c3e27867215d99f6e01d429d086ca
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index cbfb169..93f60a6 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -392,7 +392,7 @@ bool ISO8601parseTime(const OUString &aTimeStr, starutil::Time& rTime)
sal_Int32 n = 0;
OUString tokInt;
OUString tokFrac;
- bool bFrac;
+ bool bFrac = false;
// hours
if (bSuccess && (bSuccess = getISO8601TimeToken(aTimeStr, n, tokInt, bFrac, tokFrac)))
{
More information about the Libreoffice-commits
mailing list