tiff/tiff-3.8.2-seek.patch
Stephan Kulow bcaa13d660 Accepting request 28145 from home:jengelh:branches:graphics
Copy from home:jengelh:branches:graphics/tiff via accept of submit request 28145 revision 5.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/28145
OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=6
2010-01-07 17:50:34 +00:00

12 lines
486 B
Diff

--- libtiff/tiffiop.h
+++ libtiff/tiffiop.h
@@ -184,7 +184,7 @@
#define TIFFWriteFile(tif, buf, size) \
((*(tif)->tif_writeproc)((tif)->tif_clientdata,buf,size))
#define TIFFSeekFile(tif, off, whence) \
- ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence))
+ ((tif)->tif_seekproc?((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence)):0)
#define TIFFCloseFile(tif) \
((*(tif)->tif_closeproc)((tif)->tif_clientdata))
#define TIFFGetFileSize(tif) \