mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Avoid comparing pointer against a numerical value by adding a * in
front of it. Reviewed by: phk
This commit is contained in:
parent
bee297849c
commit
a4c40dd85d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138097
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user