Skip to content

Commit ec7679d

Browse files
Jakujexhanulik
authored andcommitted
Fix corner case of counting duplicate symbols
This was working correctly until d5dea2d. Fixes: OpenSC#3298
1 parent 5035848 commit ec7679d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-duplicate-symbols.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ EXPORTS=`find "${SOURCE_PATH}" -name "*exports"`
66
ERRORS=0
77
for E in $EXPORTS; do
88
DUPES=`sort $E | uniq -d`
9-
NUM_DUPES=`echo -n "$DUPES" | wc -l`
9+
NUM_DUPES=`sort $E | uniq -d | wc -l`
1010
if [ $NUM_DUPES -gt 0 ]; then
1111
echo "There are $NUM_DUPES duplicate symbols in '$E': $DUPES"
1212
ERRORS=1

0 commit comments

Comments
 (0)