summaryrefslogtreecommitdiffabout
path: root/lib/sockmapstr.c
Side-by-side diff
Diffstat (limited to 'lib/sockmapstr.c') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/sockmapstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockmapstr.c b/lib/sockmapstr.c
index 1c0d749..7e188f2 100644
--- a/lib/sockmapstr.c
+++ b/lib/sockmapstr.c
@@ -224,13 +224,13 @@ read_payload_length(struct sockmap_input_stream *sp)
strerror(errno)));
return errno;
}
if (n == 0)
return EOF;
len += n;
- if (p = memchr(sp->nbuf, ':', len)) {
+ if ((p = memchr(sp->nbuf, ':', len))) {
sp->cp = p - sp->nbuf;
sp->nbuf[len] = 0;
sp->nlen = len;
return 0;
}
}

Return to:

Send suggestions and report system problems to the System administrator.