Skip to content

Commit

Permalink
Fix corner case of counting duplicate symbols
Browse files Browse the repository at this point in the history
This was working correctly until d5dea2d.

Fixes: OpenSC#3298
  • Loading branch information
Jakuje authored and xhanulik committed Jan 9, 2025
1 parent 5035848 commit ec7679d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-duplicate-symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EXPORTS=`find "${SOURCE_PATH}" -name "*exports"`
ERRORS=0
for E in $EXPORTS; do
DUPES=`sort $E | uniq -d`
NUM_DUPES=`echo -n "$DUPES" | wc -l`
NUM_DUPES=`sort $E | uniq -d | wc -l`
if [ $NUM_DUPES -gt 0 ]; then
echo "There are $NUM_DUPES duplicate symbols in '$E': $DUPES"
ERRORS=1
Expand Down

0 comments on commit ec7679d

Please sign in to comment.