diff --git a/src/api/pdfrenderer.cpp b/src/api/pdfrenderer.cpp index fced7a31ca..aa16f2a1bd 100644 --- a/src/api/pdfrenderer.cpp +++ b/src/api/pdfrenderer.cpp @@ -713,7 +713,7 @@ bool TessPDFRenderer::imageToPDFObj(Pix *pix, L_Compressed_Data *cid = nullptr; - int format, sad; + int sad = 0; if (pixGetInputFormat(pix) == IFF_PNG) sad = pixGenerateCIData(pix, L_FLATE_ENCODE, 0, 0, &cid); if (!cid) {