apply patch from issue 320

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@401 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
joregan 2010-06-09 11:52:20 +00:00
parent 9b000b1c4e
commit 43690e23c8

View File

@ -239,6 +239,7 @@ int main(int argc, char **argv) {
//fprintf (stderr, "%d pages\n", npages);
}
fclose(fp);
fp = NULL;
Pix *pix;
if (is_tiff) {
@ -346,7 +347,7 @@ int main(int argc, char **argv) {
#endif // HAVE_LIBLEPT
//no longer using fp
fclose(fp);
if (fp != NULL) fclose(fp);
bool output_hocr = tessedit_create_hocr;
outfile = argv[2];