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

tools/tiff2pdf.c:4203:1: start of procedure t2p_pdf_currenttime()
4201.  */
4202. 
4203. void t2p_pdf_currenttime(T2P* t2p)
      ^
4204. {
4205. 	struct tm* currenttime;

tools/tiff2pdf.c:4208:6: Taking false branch
4206. 	time_t timenow;
4207. 
4208. 	if (time(&timenow) == (time_t) -1) {
           ^
4209. 		TIFFError(TIFF2PDF_MODULE,
4210. 			  "Can't get the current time: %s", strerror(errno));

tools/tiff2pdf.c:4214:2: 
4212. 	}
4213. 
4214. 	currenttime = localtime(&timenow);
       ^
4215. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
4216. 		 "D:%.4d%.2d%.2d%.2d%.2d%.2d",

tools/tiff2pdf.c:4215:2: 
4213. 
4214. 	currenttime = localtime(&timenow);
4215. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
       ^
4216. 		 "D:%.4d%.2d%.2d%.2d%.2d%.2d",
4217. 		 (currenttime->tm_year + 1900) % 65536,
