From 46f21a4182f8b42e4fbcbebcb0385712d2ac64cb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 14 Sep 2019 15:36:02 +0200 Subject: [PATCH] Fix CID 1164633 (Uninitialized pointer field) Signed-off-by: Stefan Weil --- src/ccmain/equationdetect.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ccmain/equationdetect.h b/src/ccmain/equationdetect.h index a59ab9bb..6030df1d 100644 --- a/src/ccmain/equationdetect.h +++ b/src/ccmain/equationdetect.h @@ -2,7 +2,6 @@ // File: equationdetect.h // Description: The equation detection class that inherits equationdetectbase. // Author: Zongyi (Joe) Liu (joeliu@google.com) -// Created: Fri Aug 31 11:13:01 PST 2011 // // (C) Copyright 2011, Google Inc. // 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 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 // each grid y coordinate. This pointer is passed in from the caller, so do // NOT destroy it in the class. - ColPartitionSet** best_columns_; + ColPartitionSet** best_columns_ = nullptr; // The super bounding box of all cps in the part_grid_. TBOX* cps_super_bbox_;