diff --git a/lib/roken/readv.c b/lib/roken/readv.c index 0f1883ebe..f73897ae3 100644 --- a/lib/roken/readv.c +++ b/lib/roken/readv.c @@ -54,7 +54,7 @@ readv(int d, const struct iovec *iov, int iovcnt) for(i = 0; i < iovcnt; ++i) tot += iov[i].iov_len; buf = malloc(tot); - if (tut != 0 && buf == NULL) { + if (tot != 0 && buf == NULL) { errno = ENOMEM; return -1; }