Skip to content

Conversation

@Ani-li
Copy link

@Ani-li Ani-li commented Oct 16, 2025

1: Uninitialized variable index2rec
Problem: The variable index2rec was being used without being properly assigned in the inner loop, leading to undefined behavior.

Root Cause: In the nested loop that searches for matching vertices, index2rec was declared but never assigned the value of index2 before the comparison logic.

Fix: Added the missing assignment index2rec = index2; in the inner loop.

2: Unused variable iNumUniqueVerts
Problem: The variable iNumUniqueVerts was declared and incremented but never actually used, causing compilation warnings and dead code.

Fix: Removed the unused variable declaration and its increment operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant