Repository navigation
Commit eaf600c
Remove dead memmove code from pq_recvbuf()
The memmove block in pq_recvbuf() is unreachable dead code that has
never been executed in practice.
Analysis:
pq_recvbuf() is only called from pq_getbytes() when the condition
PqRecvPointer >= PqRecvLength is true (buffer is empty or exhausted).
However, the memmove is only executed when PqRecvLength > PqRecvPointer
(buffer contains unread data).
These conditions are mutually exclusive:
- Caller requires: PqRecvPointer >= PqRecvLength
- memmove requires: PqRecvLength > PqRecvPointer1 parent 25c5bb9 commit eaf600c
1 file changed
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | 903 | | |
913 | 904 | | |
914 | 905 | | |
| |||
0 commit comments