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

tools/tiff2pdf.c:4256:1: start of procedure t2p_pdf_currenttime()
4254.  */
4255. 
4256. void t2p_pdf_currenttime(T2P* t2p)
      ^
4257. {
4258. 	struct tm* currenttime;

tools/tiff2pdf.c:4261:6: Taking false branch
4259. 	time_t timenow;
4260. 
4261. 	if (time(&timenow) == (time_t) -1) {
           ^
4262. 		TIFFError(TIFF2PDF_MODULE,
4263. 			  "Can't get the current time: %s", strerror(errno));

tools/tiff2pdf.c:4267:2: 
4265. 	}
4266. 
4267. 	currenttime = localtime(&timenow);
       ^
4268. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
4269. 		 "D:%.4u%.2u%.2u%.2u%.2u%.2u",

tools/tiff2pdf.c:4270:4: 
4268. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
4269. 		 "D:%.4u%.2u%.2u%.2u%.2u%.2u",
4270. 		 TIFFmin((unsigned) currenttime->tm_year + 1900U,9999U),
         ^
4271. 		 TIFFmin((unsigned) currenttime->tm_mon + 1U,12U),   /* 0-11 + 1 */
4272. 		 TIFFmin((unsigned) currenttime->tm_mday,31U),       /* 1-31 */
