From: Adam Dickmeiss Date: Fri, 13 Mar 2015 10:12:29 +0000 (+0100) Subject: Simplify tcpip_get a bit YAZ-831 X-Git-Tag: v5.10.2~3 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=7bfb3050edda3cfa84906284a329e3f7fb017e24 Simplify tcpip_get a bit YAZ-831 --- diff --git a/src/tcpip.c b/src/tcpip.c index 896eaf3..e0165b1 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -1185,7 +1185,6 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) break; return -1; } - hasread += res; } else #endif @@ -1238,9 +1237,9 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) } else if (!res) return hasread; - hasread += res; #endif } + hasread += res; if (hasread > h->max_recv_bytes) { h->cerrno = CSBUFSIZE;