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

tools/tiff2pdf.c:4137:1: start of procedure t2p_pdf_currenttime()
4135.  */
4136. 
4137. void t2p_pdf_currenttime(T2P* t2p)
      ^
4138. {
4139. 	struct tm* currenttime;

tools/tiff2pdf.c:4142:6: Taking false branch
4140. 	time_t timenow;
4141. 
4142. 	if (time(&timenow) == (time_t) -1) {
           ^
4143. 		TIFFError(TIFF2PDF_MODULE,
4144. 			  "Can't get the current time: %s", strerror(errno));

tools/tiff2pdf.c:4148:2: 
4146. 	}
4147. 
4148. 	currenttime = localtime(&timenow);
       ^
4149. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
4150. 		 "D:%.4d%.2d%.2d%.2d%.2d%.2d",

tools/tiff2pdf.c:4149:2: 
4147. 
4148. 	currenttime = localtime(&timenow);
4149. 	snprintf(t2p->pdf_datetime, sizeof(t2p->pdf_datetime),
       ^
4150. 		 "D:%.4d%.2d%.2d%.2d%.2d%.2d",
4151. 		 (currenttime->tm_year + 1900) % 65536,
