mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-04 01:39:16 +08:00
Fix CID 1164633 (Uninitialized pointer field)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
9ea579bf1b
commit
46f21a4182
@ -2,7 +2,6 @@
|
|||||||
// File: equationdetect.h
|
// File: equationdetect.h
|
||||||
// Description: The equation detection class that inherits equationdetectbase.
|
// Description: The equation detection class that inherits equationdetectbase.
|
||||||
// Author: Zongyi (Joe) Liu (joeliu@google.com)
|
// Author: Zongyi (Joe) Liu (joeliu@google.com)
|
||||||
// Created: Fri Aug 31 11:13:01 PST 2011
|
|
||||||
//
|
//
|
||||||
// (C) Copyright 2011, Google Inc.
|
// (C) Copyright 2011, Google Inc.
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -249,12 +248,12 @@ class EquationDetect : public EquationDetectBase {
|
|||||||
|
|
||||||
// The ColPartitionGrid that we are processing. This pointer is passed in from
|
// The ColPartitionGrid that we are processing. This pointer is passed in from
|
||||||
// the caller, so do NOT destroy it in the class.
|
// the caller, so do NOT destroy it in the class.
|
||||||
ColPartitionGrid* part_grid_;
|
ColPartitionGrid* part_grid_ = nullptr;
|
||||||
|
|
||||||
// A simple array of pointers to the best assigned column division at
|
// A simple array of pointers to the best assigned column division at
|
||||||
// each grid y coordinate. This pointer is passed in from the caller, so do
|
// each grid y coordinate. This pointer is passed in from the caller, so do
|
||||||
// NOT destroy it in the class.
|
// NOT destroy it in the class.
|
||||||
ColPartitionSet** best_columns_;
|
ColPartitionSet** best_columns_ = nullptr;
|
||||||
|
|
||||||
// The super bounding box of all cps in the part_grid_.
|
// The super bounding box of all cps in the part_grid_.
|
||||||
TBOX* cps_super_bbox_;
|
TBOX* cps_super_bbox_;
|
||||||
|
Loading…
Reference in New Issue
Block a user