From 0b1cf9faaf15e9fc7939c6a11041c8503cf6e90f Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Wed, 17 Feb 2016 11:03:37 -0500 Subject: [PATCH] =?UTF-8?q?Avoid=20warning:=20the=20address=20of=20?= =?UTF-8?q?=E2=80=98timezone=E2=80=99=20will=20always=20evaluate=20as=20?= =?UTF-8?q?=E2=80=98true=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As timezone is a pointer allocated on the stack, there is no need to check for a NULL pointer - if that was ever the initial intention. --- SoObjects/SOGo/BSONCodec.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/BSONCodec.m b/SoObjects/SOGo/BSONCodec.m index 2b5b9d1eb..695d19628 100644 --- a/SoObjects/SOGo/BSONCodec.m +++ b/SoObjects/SOGo/BSONCodec.m @@ -600,7 +600,7 @@ static NSDictionary *BSONTypes() /* We may have the zone using the UTC offset or abbreviation (deprecated) */ - if (timezone && strlen(timezone) > 0 && (timezone[0] == '+' || timezone[0] == '-')) + if (strlen(timezone) > 0 && (timezone[0] == '+' || timezone[0] == '-')) { NSCalendarDate *tzDate;