Assign pointer NULL, not 0.

Approved by:	julian (mentor)
This commit is contained in:
glebius 2004-10-11 07:28:36 +00:00
parent 5397712a09
commit 659b05c3ca

View File

@ -765,7 +765,7 @@ tunwrite(struct cdev *dev, struct uio *uio, int flag)
return (ENOBUFS);
mlen = MHLEN;
top = 0;
top = NULL;
mp = ⊤
while (error == 0 && uio->uio_resid > 0) {
m->m_len = min(mlen, uio->uio_resid);