mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 15:03:45 +08:00
Fix CID 1164634, CID 1164635 (Uninitialized pointer field)
Remove the unused dummy member variables. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ffd6f96654
commit
33e6d0496c
@ -336,7 +336,6 @@ WERD* WERD::shallow_copy() {
|
||||
|
||||
new_word->blanks = blanks;
|
||||
new_word->flags = flags;
|
||||
new_word->dummy = dummy;
|
||||
new_word->correct = correct;
|
||||
return new_word;
|
||||
}
|
||||
@ -352,7 +351,6 @@ WERD& WERD::operator=(const WERD& source) {
|
||||
blanks = source.blanks;
|
||||
flags = source.flags;
|
||||
script_id_ = source.script_id_;
|
||||
dummy = source.dummy;
|
||||
correct = source.correct;
|
||||
if (!cblobs.empty()) cblobs.clear();
|
||||
cblobs.deep_copy(&source.cblobs, &C_BLOB::deep_copy);
|
||||
|
@ -172,7 +172,6 @@ class WERD : public ELIST2_LINK {
|
||||
|
||||
private:
|
||||
uint8_t blanks; // no of blanks
|
||||
uint8_t dummy; // padding
|
||||
BITS16 flags; // flags about word
|
||||
BITS16 disp_flags; // display flags
|
||||
int16_t script_id_; // From unicharset.
|
||||
|
@ -2,7 +2,6 @@
|
||||
** Filename: adaptive.h
|
||||
** Purpose: Interface to adaptive matcher.
|
||||
** Author: Dan Johnson
|
||||
** History: Fri Mar 8 10:00:49 1991, DSJ, Created.
|
||||
**
|
||||
** (c) Copyright Hewlett-Packard Company, 1988.
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -27,7 +26,6 @@
|
||||
|
||||
typedef struct {
|
||||
uint16_t ProtoId;
|
||||
uint16_t dummy;
|
||||
PROTO_STRUCT Proto;
|
||||
}
|
||||
|
||||
@ -57,7 +55,7 @@ typedef union {
|
||||
typedef struct {
|
||||
uint8_t NumPermConfigs;
|
||||
uint8_t MaxNumTimesSeen; // maximum number of times any TEMP_CONFIG was seen
|
||||
uint8_t dummy[2]; // (cut at matcher_min_examples_for_prototyping)
|
||||
// (cut at matcher_min_examples_for_prototyping)
|
||||
BIT_VECTOR PermProtos;
|
||||
BIT_VECTOR PermConfigs;
|
||||
LIST TempProtos;
|
||||
@ -69,7 +67,6 @@ typedef struct {
|
||||
INT_TEMPLATES Templates;
|
||||
int NumNonEmptyClasses;
|
||||
uint8_t NumPermClasses;
|
||||
uint8_t dummy[3];
|
||||
ADAPT_CLASS Class[MAX_NUM_CLASSES];
|
||||
} ADAPT_TEMPLATES_STRUCT;
|
||||
using ADAPT_TEMPLATES = ADAPT_TEMPLATES_STRUCT*;
|
||||
|
Loading…
Reference in New Issue
Block a user