summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-10 14:56:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-10 17:14:10 +0200
commit212437469b4fdb1604cf93add9ff9e79ead0f62f (patch)
treed5340f824270c33a07056d7b2a0fd4530ac80b67 /sal
parent25694a5ccb552b3cbe8a9191e3d1490a3ec7eda1 (diff)
cid#1452268 Uninitialized scalar variable
Change-Id: I8b9d8f80bbf3d7d9c060d2da4675ae832966c085 Reviewed-on: https://gerrit.libreoffice.org/77242 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/all/log.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index ae89b0802e92..94aef6b17d24 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -218,8 +218,10 @@ void maybeOutputTimestamp(std::ostringstream &s) {
tm.tm_min = dateTime.Minutes;
tm.tm_hour = dateTime.Hours;
tm.tm_mday = dateTime.Day;
+ tm.tm_wday = dateTime.DayOfWeek;
tm.tm_mon = dateTime.Month - 1;
tm.tm_year = dateTime.Year - 1900;
+ tm.tm_yday = 0;
strftime(ts, sizeof(ts), "%Y-%m-%d:%H:%M:%S", &tm);
char milliSecs[11];
snprintf(milliSecs, sizeof(milliSecs), "%03u",