summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/datetime
diff options
context:
space:
mode:
authorRui Liu <rui.liu@mongodb.com>2022-10-18 14:35:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-18 15:58:08 +0000
commit519c94b49f4cecdf2dd721876362f0fd2d240e55 (patch)
treebdb63172d0eaf0833e529548fd4ebcdb9b8bf4b7 /src/mongo/db/query/datetime
parentc6982d568e1de286493c33031e9e86db3d4a0025 (diff)
downloadmongo-519c94b49f4cecdf2dd721876362f0fd2d240e55.tar.gz
SERVER-70228 Initialize unused pointer field in TimeZone
Diffstat (limited to 'src/mongo/db/query/datetime')
-rw-r--r--src/mongo/db/query/datetime/date_time_support.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/datetime/date_time_support.h b/src/mongo/db/query/datetime/date_time_support.h
index 77cba17d131..b176a89e7fa 100644
--- a/src/mongo/db/query/datetime/date_time_support.h
+++ b/src/mongo/db/query/datetime/date_time_support.h
@@ -386,7 +386,7 @@ private:
}
// null if this TimeZone represents the default UTC time zone, or a UTC-offset time zone
- _timelib_tzinfo* _tzInfo;
+ _timelib_tzinfo* _tzInfo{nullptr};
// represents the UTC offset in seconds if _tzInfo is null and it is not 0
Seconds _utcOffset{0};