Skip to content

Commit 37f8282

Browse files
committed
Fix CID 1164616 (Uninitialized scalar field)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 430dc5c commit 37f8282

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ccstruct/coutln.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ struct Pix;
7272
ELISTIZEH (C_OUTLINE)
7373
class DLLSYM C_OUTLINE:public ELIST_LINK {
7474
public:
75-
C_OUTLINE() { //empty constructor
76-
steps = nullptr;
77-
offsets = nullptr;
78-
}
75+
C_OUTLINE() {
76+
stepcount = 0;
77+
steps = nullptr;
78+
offsets = nullptr;
79+
}
7980
C_OUTLINE( //constructor
8081
CRACKEDGE *startpt, //from edge detector
8182
ICOORD bot_left, //bounding box //length of loop

0 commit comments

Comments
 (0)