Silence a clang analyzer false positive.

This commit is contained in:
Todd C. Miller
2017-12-22 13:27:08 -07:00
parent 83ad5d9dbc
commit f2fdda1aa7

View File

@@ -469,6 +469,11 @@ done:
*dst = '\0';
*str = dst0;
#ifdef __clang_analyzer__
/* clang analyzer false positive */
if (__builtin_expect(dst < dst0, 0))
__builtin_trap();
#endif
debug_return_int(dst - dst0);
}