Skip to content

Commit 956525f

Browse files
committed
fix uninitialized variable, remove unused variable
1 parent a6e7166 commit 956525f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/pdfrenderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ bool TessPDFRenderer::imageToPDFObj(Pix *pix,
713713

714714
L_Compressed_Data *cid = nullptr;
715715

716-
int format, sad;
716+
int sad = 0;
717717
if (pixGetInputFormat(pix) == IFF_PNG)
718718
sad = pixGenerateCIData(pix, L_FLATE_ENCODE, 0, 0, &cid);
719719
if (!cid) {

0 commit comments

Comments
 (0)