summaryrefslogtreecommitdiff
path: root/backend/tiff
diff options
context:
space:
mode:
Diffstat (limited to 'backend/tiff')
-rw-r--r--backend/tiff/tiff2ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/tiff/tiff2ps.c b/backend/tiff/tiff2ps.c
index 3733645d..f8933674 100644
--- a/backend/tiff/tiff2ps.c
+++ b/backend/tiff/tiff2ps.c
@@ -1542,12 +1542,13 @@ PSDataBW(TIFF2PSContext* ctx, TIFF* tif, uint32 w, uint32 h)
(void) w; (void) h;
tf_buf = (unsigned char *) _TIFFmalloc(stripsize);
- memset(tf_buf, 0, stripsize);
if (tf_buf == NULL) {
TIFFError(ctx->filename, "No space for scanline buffer");
return;
}
+ memset(tf_buf, 0, stripsize);
+
#if defined( EXP_ASCII85ENCODER )
if ( ctx->ascii85 ) {
/*