projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Trust the compiler to do short-circuit evaluation.
[citadel.git]
/
webcit
/
paging.c
diff --git
a/webcit/paging.c
b/webcit/paging.c
index b36375d872eccfc1e953ae696cb1d87ffc1dd090..acfcdd97c57d4b76c6730e26cfb2d092e74d219b 100644
(file)
--- a/
webcit/paging.c
+++ b/
webcit/paging.c
@@
-304,7
+304,7
@@
void chat_recv(void) {
pf.fd = WC->chat_sock;
pf.events = POLLIN;
pf.revents = 0;
- if (
poll(&pf, 1, 1) > 0) if (pf.revents & POLLIN
) {
+ if (
(poll(&pf, 1, 1) > 0) && (pf.revents & POLLIN)
) {
++got_data;
/** Temporarily swap the serv and chat sockets during chat talk */