Avoid warning: the address of ‘timezone’ will always evaluate as ‘true’

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.
pull/201/head
Patrice Levesque 2016-02-17 11:03:37 -05:00
parent 986665f011
commit 0b1cf9faaf
1 changed files with 1 additions and 1 deletions

View File

@ -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;