From 7bfb3050edda3cfa84906284a329e3f7fb017e24 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 13 Mar 2015 11:12:29 +0100 Subject: [PATCH] Simplify tcpip_get a bit YAZ-831 --- src/tcpip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 1.7.10.4