# HG changeset patch # User Matti Hamalainen # Date 1530186592 -10800 # Node ID c048da352279f29dc580f9a44e59d30f9330dedb # Parent b49814dd8469969ef16524790f664c947e9068ec Default to D64_ILACE_RES if the given buffer is NULL in fmtDrazLaceGetLaceType(). diff -r b49814dd8469 -r c048da352279 tools/lib64fmts.c --- a/tools/lib64fmts.c Thu Jun 28 14:48:50 2018 +0300 +++ b/tools/lib64fmts.c Thu Jun 28 14:49:52 2018 +0300 @@ -190,7 +190,12 @@ const DMGrowBuf *buf, const DMC64ImageFormat *fmt) { (void) fmt; - img->laceType = buf->data[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; + + if (buf != NULL) + img->laceType = buf->data[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; + else + img->laceType = D64_ILACE_RES; + return TRUE; }