Assign pointer NULL, not 0.

Approved by:	julian (mentor)
This commit is contained in:
Gleb Smirnoff 2004-10-11 07:28:36 +00:00
parent 5d3544e59d
commit 570343bfec

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);