Skip to content

Commit 31dfcdd

Browse files
committed
grt: fix Coverity warnings about uninit fields in Segment's ctor
Signed-off-by: Matt Liberty <[email protected]>
1 parent f9bdbb1 commit 31dfcdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grt/src/fastroute/include/DataType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ enum class EdgeDirection
4949
struct Segment // A Segment is a 2-pin connection
5050
{
5151
Segment(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int8_t cost)
52-
: x1(x1), y1(y1), x2(x2), y2(y2), cost(cost)
52+
: x1(x1), y1(y1), x2(x2), y2(y2), cost(cost), xFirst(false), HVH(false)
5353
{
5454
}
5555
const int16_t x1, y1, x2, y2; // coordinates of two endpoints (x1 <= x2)

0 commit comments

Comments
 (0)