crypto/asn1/a_time.c:105: error: NULL_DEREFERENCE
  pointer `ts` last assigned on line 103 could be null and is dereferenced at line 105, column 6.
Showing all 3 steps of the trace


crypto/asn1/a_time.c:92:1: start of procedure ASN1_TIME_set()
90.   
91.   
92. > ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
93.   	{
94.   	struct tm *ts;

crypto/asn1/a_time.c:103:2: 
101.   	ts=&data; /* should return &data, but doesn't on some systems, so we don't even look at the return value */
102.   #else
103. > 	ts=gmtime(&t);
104.   #endif
105.   	if((ts->tm_year >= 50) && (ts->tm_year < 150))

crypto/asn1/a_time.c:105:6: 
103.   	ts=gmtime(&t);
104.   #endif
105. > 	if((ts->tm_year >= 50) && (ts->tm_year < 150))
106.   					return ASN1_UTCTIME_set(s, t);
107.   	return ASN1_GENERALIZEDTIME_set(s,t);
