crypto/mem_dbg.c:698: error: NULL_DEREFERENCE
  pointer `lcl` last assigned on line 695 could be null and is dereferenced at line 698, column 4.
Showing all 7 steps of the trace


crypto/mem_dbg.c:678:1: start of procedure print_leak_doall_arg()
676.   	} MEM_LEAK;
677.   
678. > static void print_leak_doall_arg(const MEM *m, MEM_LEAK *l)
679.   	{
680.   	char buf[1024];

crypto/mem_dbg.c:681:2: 
679.   	{
680.   	char buf[1024];
681. > 	char *bufp = buf;
682.   	APP_INFO *amip;
683.   	int ami_cnt;

crypto/mem_dbg.c:684:2: 
682.   	APP_INFO *amip;
683.   	int ami_cnt;
684. > 	struct tm *lcl = NULL;
685.   	unsigned long ti;
686.   	void *tip;

crypto/mem_dbg.c:690:5: Taking false branch
688.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
689.   
690.   	if(m->addr == (char *)l->bio)
           ^
691.   	    return;
692.   

crypto/mem_dbg.c:693:6: Taking true branch
691.   	    return;
692.   
693.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
694.   		{
695.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:695:3: 
693.   	if (options & V_CRYPTO_MDEBUG_TIME)
694.   		{
695. > 		lcl = localtime(&m->time);
696.   	
697.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:697:3: 
695.   		lcl = localtime(&m->time);
696.   	
697. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
698.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
699.   		bufp += strlen(bufp);
