Skip to content

Commit

Permalink
Fix CID 1164612 (Uninitialized scalar field)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jul 6, 2018
1 parent 19a9945 commit 430dc5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/textord/gap_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
#include "statistc.h"
#include "gap_map.h"

#define EXTERN
EXTERN BOOL_VAR (gapmap_debug, FALSE, "Say which blocks have tables");
EXTERN BOOL_VAR (gapmap_use_ends, FALSE,
"Use large space at start and end of rows");
EXTERN BOOL_VAR (gapmap_no_isolated_quanta, FALSE,
BOOL_VAR(gapmap_debug, FALSE, "Say which blocks have tables");
BOOL_VAR(gapmap_use_ends, FALSE, "Use large space at start and end of rows");
BOOL_VAR(gapmap_no_isolated_quanta, FALSE,
"Ensure gaps not less than 2quanta wide");
EXTERN double_VAR (gapmap_big_gaps, 1.75, "xht multiplier");
double_VAR(gapmap_big_gaps, 1.75, "xht multiplier");

/*************************************************************************
* A block gap map is a quantised histogram of whitespace regions in the
Expand Down Expand Up @@ -74,6 +72,8 @@ GAPMAP::GAPMAP( //Constructor
}
}
if ((total_rows < 3) || (min_left >= max_right)) {
bucket_size = 0;
map_max = 0;
total_rows = 0;
min_left = max_right = 0;
return;
Expand Down

0 comments on commit 430dc5c

Please sign in to comment.