Skip to content

Commit

Permalink
Fix unitialized variable (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassa committed Feb 23, 2021
1 parent 71486ac commit 3a055b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchaudio/csrc/sox/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ torch::Tensor convert_to_tensor(
const bool normalize,
const bool channels_first) {
torch::Tensor t;
uint64_t dummy;
uint64_t dummy = 0;
SOX_SAMPLE_LOCALS;
if (normalize || dtype == torch::kFloat32) {
t = torch::empty(
Expand Down

0 comments on commit 3a055b5

Please sign in to comment.