Skip to content

Commit

Permalink
fix uninitialized variable, remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Oct 9, 2018
1 parent a6e7166 commit 956525f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/pdfrenderer.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 956525f

Please sign in to comment.