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
parent
986665f011
commit
0b1cf9faaf
|
@ -600,7 +600,7 @@ static NSDictionary *BSONTypes()
|
||||||
|
|
||||||
/* We may have the zone using the UTC offset
|
/* We may have the zone using the UTC offset
|
||||||
or abbreviation (deprecated) */
|
or abbreviation (deprecated) */
|
||||||
if (timezone && strlen(timezone) > 0 && (timezone[0] == '+' || timezone[0] == '-'))
|
if (strlen(timezone) > 0 && (timezone[0] == '+' || timezone[0] == '-'))
|
||||||
{
|
{
|
||||||
NSCalendarDate *tzDate;
|
NSCalendarDate *tzDate;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue