lib9: fix memset in fmtnullinit

This commit is contained in:
Russ Cox 2008-11-17 19:45:37 -08:00
parent 95cb0f633d
commit c6d1c6c617

View file

@ -21,7 +21,7 @@ __fmtnullflush(Fmt *f)
int
fmtnullinit(Fmt *f)
{
memset(&f, 0, sizeof *f);
memset(f, 0, sizeof *f);
f->runes = 1;
f->start = nullbuf;
f->to = nullbuf;