Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void check_send_queue(struct unistimsession *pte)
- {
- if (pte->last_buf_available == 1) {
- ....
- }
- else if (pte->last_seq_ack + 1 == pte->seq_server + 1) { //<==
- ....
- }
- }
- This suspicious code was found in Asterisk project by PVS-Studio static code analyzer.
- Warning message is:
- V584 The '1' value is present on both sides of the '==' operator. The expression is incorrect or it can be simplified. chan_unistim.c 1095
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment