Skip to content

Commit

Permalink
Initialize reachedDepth in TDViaParser::PreParseElements().
Browse files Browse the repository at this point in the history
(based on review feedback)
  • Loading branch information
spathiwa authored and cglzaguilar committed Jan 22, 2019
1 parent e01c218 commit 32e7e6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/core/TDCodecVia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ Boolean TDViaParser::PreParseElements(Int32 rank, ArrayDimensionVector dimension
// such as a cluster or nested array.

Int32 depth = 0;
if (reachedDepth)
*reachedDepth = 1;

ArrayDimensionVector tempDimensionLengths;
for (Int32 i = 0; i < kArrayMaxRank; i++) {
Expand Down

0 comments on commit 32e7e6b

Please sign in to comment.