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

tools/tiff2pdf.c:4150:1: start of procedure t2p_pdf_currenttime()
4148.  */
4149. 
4150. void t2p_pdf_currenttime(T2P* t2p)
      ^
4151. {
4152. 	struct tm* currenttime;

tools/tiff2pdf.c:4155:6: Taking false branch
4153. 	time_t timenow;
4154. 
4155. 	if (time(&timenow) == (time_t) -1) {
           ^
4156. 		TIFFError(TIFF2PDF_MODULE,
4157. 			  "Can't get the current time: %s", strerror(errno));

tools/tiff2pdf.c:4161:2: 
4159. 	}
4160. 
4161. 	currenttime = localtime(&timenow);
       ^
4162. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
4163. 		 "D:%.4d%.2d%.2d%.2d%.2d%.2d",

tools/tiff2pdf.c:4162:2: 
4160. 
4161. 	currenttime = localtime(&timenow);
4162. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
       ^
4163. 		 "D:%.4d%.2d%.2d%.2d%.2d%.2d",
4164. 		 (currenttime->tm_year + 1900) % 65536,
