Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum git_ack_status {
- GIT_ACK_NONE,
- GIT_ACK_CONTINUE,
- GIT_ACK_COMMON,
- GIT_ACK_READY
- };
- static int wait_while_ack(gitno_buffer *buf)
- {
- ....
- if (pkt->type == GIT_PKT_ACK &&
- (pkt->status != GIT_ACK_CONTINUE ||
- pkt->status != GIT_ACK_COMMON)) {
- ....
- }
- This suspicious code was found in TortoiseGIT project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression is always true. Probably the '&&' operator should be used here. smart_protocol.c 264
- 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