mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 08:43:03 +08:00
Fix CID 1164620 (Uninitialized pointer field)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
951f442303
commit
5b1f0dbd4b
@ -2,7 +2,6 @@
|
||||
// File: par_control.cpp
|
||||
// Description: Control code for parallel implementation.
|
||||
// Author: Ray Smith
|
||||
// Created: Mon Nov 04 13:23:15 PST 2013
|
||||
//
|
||||
// (C) Copyright 2013, Google Inc.
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -25,15 +24,15 @@
|
||||
namespace tesseract {
|
||||
|
||||
struct BlobData {
|
||||
BlobData() : blob(nullptr), choices(nullptr) {}
|
||||
BlobData() = default;
|
||||
BlobData(int index, Tesseract* tess, const WERD_RES& word)
|
||||
: blob(word.chopped_word->blobs[index]),
|
||||
tesseract(tess),
|
||||
choices(&(*word.ratings)(index, index)) {}
|
||||
|
||||
TBLOB* blob;
|
||||
Tesseract* tesseract;
|
||||
BLOB_CHOICE_LIST** choices;
|
||||
TBLOB* blob = nullptr;
|
||||
Tesseract* tesseract = nullptr;
|
||||
BLOB_CHOICE_LIST** choices = nullptr;
|
||||
};
|
||||
|
||||
void Tesseract::PrerecAllWordsPar(const GenericVector<WordData>& words) {
|
||||
|
Loading…
Reference in New Issue
Block a user