Avoid comparing pointer against a numerical value by adding a * in

front of it.

Reviewed by:	phk
This commit is contained in:
Xin LI 2004-11-25 16:14:27 +00:00
parent bee297849c
commit a4c40dd85d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138097

View File

@ -145,7 +145,7 @@ build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, int le
{
int i;
if (iovlen < 0)
if (*iovlen < 0)
return;
i = *iovlen;
*iov = realloc(*iov, sizeof **iov * (i + 2));