tools/tiff2pdf.c:4043: error: Null Dereference
  pointer `currenttime` last assigned on line 4041 could be null and is dereferenced at line 4043, column 4.

tools/tiff2pdf.c:4034:1: start of procedure t2p_pdf_currenttime()
4032.  */
4033. 
4034. void t2p_pdf_currenttime(T2P* t2p)
      ^
4035. {
4036. 

tools/tiff2pdf.c:4040:2: 
4038. 	time_t timenow;
4039. 
4040. 	timenow=time(0);
       ^
4041. 	currenttime=localtime(&timenow);
4042. 	sprintf((char *)t2p->pdf_datetime, "D:%.4d%.2d%.2d%.2d%.2d%.2d",

tools/tiff2pdf.c:4041:2: 
4039. 
4040. 	timenow=time(0);
4041. 	currenttime=localtime(&timenow);
       ^
4042. 	sprintf((char *)t2p->pdf_datetime, "D:%.4d%.2d%.2d%.2d%.2d%.2d",
4043. 		(currenttime->tm_year+1900) % 65536, 

tools/tiff2pdf.c:4042:2: 
4040. 	timenow=time(0);
4041. 	currenttime=localtime(&timenow);
4042. 	sprintf((char *)t2p->pdf_datetime, "D:%.4d%.2d%.2d%.2d%.2d%.2d",
       ^
4043. 		(currenttime->tm_year+1900) % 65536, 
4044. 		(currenttime->tm_mon+1) % 256, 
