Skip to content

Commit 0ae3dfb

Browse files
committed
fix a [-Werror=uninitialized] problem
1 parent 13b2f52 commit 0ae3dfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

svo_common/src/frame.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Frame::Frame(
3131
size_t n_pyr_levels)
3232
: id_(frame_counter_++) // TEMPORARY
3333
, cam_(cam)
34-
, key_pts_(5, std::make_pair(-1, BearingVector()))
34+
, key_pts_(5, std::make_pair(-1, BearingVector::Zero()))
3535
, timestamp_(timestamp_ns)
3636
{
3737
initFrame(img, n_pyr_levels);
@@ -45,7 +45,7 @@ Frame::Frame(
4545
: id_(id)
4646
, cam_(cam)
4747
, T_f_w_(T_world_cam.inverse())
48-
, key_pts_(5, std::make_pair(-1, BearingVector()))
48+
, key_pts_(5, std::make_pair(-1, BearingVector::Zero()))
4949
, timestamp_(timestamp_ns)
5050
{}
5151

0 commit comments

Comments
 (0)