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


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

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

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

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