crypto/o_time.c:82: error: NULL_DEREFERENCE
  pointer `ts` last assigned on line 81 could be null and is dereferenced by call to `memcpy()` at line 82, column 2.
Showing all 4 steps of the trace


crypto/o_time.c:71:1: start of procedure OPENSSL_gmtime()
69.   #endif
70.   
71. > struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
72.   	{
73.   	struct tm *ts = NULL;

crypto/o_time.c:73:2: 
71.   struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
72.   	{
73. > 	struct tm *ts = NULL;
74.   
75.   #if defined(OPENSSL_THREADS) && !defined(OPENSSL_SYS_WIN32) && !defined(__CYGWIN32__) && (!defined(OPENSSL_SYS_VMS) || defined(gmtime_r))

crypto/o_time.c:81:2: 
79.   	ts = result;
80.   #elif !defined(OPENSSL_SYS_VMS)
81. > 	ts = gmtime(timer);
82.   	memcpy(result, ts, sizeof(struct tm));
83.   	ts = result;

crypto/o_time.c:82:2: 
80.   #elif !defined(OPENSSL_SYS_VMS)
81.   	ts = gmtime(timer);
82. > 	memcpy(result, ts, sizeof(struct tm));
83.   	ts = result;
84.   #endif
