Skip to content

Commit

Permalink
Fix seg fault by accessing uninitialized nonstd::optional variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Oct 30, 2023
1 parent 7ecba73 commit 7070f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prim-reconstruct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ bool ReconstructXformOpsFromProperties(
}
} else if (auto rotY = SplitXformOpToken(tok, kRotateY)) {
op.op_type = XformOp::OpType::RotateY;
op.suffix = rotX.value();
op.suffix = rotY.value();

if (attr.get_var().is_timesamples()) {
op.set_timesamples(attr.get_var().ts_raw());
Expand Down

0 comments on commit 7070f02

Please sign in to comment.