aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 9ea13864..1e209cac 100644
--- a/socket.c
+++ b/socket.c
@@ -151,7 +151,7 @@ int len;
static char sbuf [INTERNAL_BUFSIZE];
static char *bp;
- if (sbuflen == 0) {
+ if (sbuflen <= 0) {
/* buffer is empty; refresh. */
if ((sbuflen = read(socket,sbuf,INTERNAL_BUFSIZE)) < 0) {
if (errno = EINTR)