Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > main-updates-src > by-pkgid > eb4a6afd7a0408b5a7715d5d49df8c4a > files > 8

libtiff-3.9.5-1.5.src.rpm

--- tools/tiff2pdf.c	2012-12-19 14:29:36.000000000 +0000
+++ tools/tiff2pdf.c.oden	2012-12-19 14:29:56.000000000 +0000
@@ -1063,6 +1063,7 @@ void t2p_read_tiff_init(T2P* t2p, TIFF*
 				"Can't set directory %u of input file %s", 
 				i,
 				TIFFFileName(input));
+			t2p->t2p_error = T2P_ERR_ERROR;
 			return;
 		}
 		if(TIFFGetField(input, TIFFTAG_PAGENUMBER, &pagen, &paged)){
@@ -3177,6 +3178,7 @@ int t2p_process_ojpeg_tables(T2P* t2p, T
 			"Can't allocate %u bytes of memory for t2p_process_ojpeg_tables, %s", 
 			2048, 
 			TIFFFileName(input));
+		t2p->t2p_error = T2P_ERR_ERROR;
 		return(0);
 	}
 	_TIFFmemset(t2p->pdf_ojpegdata, 0x00, 2048);
@@ -5224,6 +5226,7 @@ tsize_t t2p_write_pdf(T2P* t2p, TIFF* in
 			TIFF2PDF_MODULE, 
 			"Can't allocate %u bytes of memory for t2p_write_pdf", 
 			t2p->pdf_xrefcount * sizeof(uint32) );
+		t2p->t2p_error = T2P_ERR_ERROR;
 		return(written);
 	}
 	t2p->pdf_xrefcount=0;