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


crypto/asn1/a_time.c:100:1: start of procedure ASN1_TIME_set()
98.   
99.   
100. > ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
101.   	{
102.   	struct tm *ts;

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

crypto/asn1/a_time.c:111:6: 
109.   	ts=gmtime(&t);
110.   #endif
111. > 	if((ts->tm_year >= 50) && (ts->tm_year < 150))
112.   					return ASN1_UTCTIME_set(s, t);
113.   	return ASN1_GENERALIZEDTIME_set(s,t);
