mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-07 06:04:59 +00:00
Mark the second uppercasing in streqci() as unreacheable for coverage tests
This commit is contained in:
parent
22bfe4f64d
commit
c2e90b3ebb
1 changed files with 5 additions and 1 deletions
|
@ -1019,7 +1019,11 @@ streqci(const char *s1, const char *s2)
|
|||
if (ASCII_a <= c1 && c1 <= ASCII_z)
|
||||
c1 += ASCII_A - ASCII_a;
|
||||
if (ASCII_a <= c2 && c2 <= ASCII_z)
|
||||
c2 += ASCII_A - ASCII_a;
|
||||
/* The following line will never get executed. streqci() is
|
||||
* only called from two places, both of which guarantee to put
|
||||
* upper-case strings into s2.
|
||||
*/
|
||||
c2 += ASCII_A - ASCII_a; /* LCOV_EXCL_LINE */
|
||||
if (c1 != c2)
|
||||
return 0;
|
||||
if (!c1)
|
||||
|
|
Loading…
Add table
Reference in a new issue