diff options
author | rsc <devnull@localhost> | 2006-06-07 15:28:30 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-07 15:28:30 +0000 |
commit | d6316a2de0bc01178f6ca3ddfb064fc19697c5ff (patch) | |
tree | 391010d9831b0e2926da7d12b9a50a32863f21e5 /src/cmd/venti | |
parent | 8b0728d3b5fa9afb4e7a4b83f2fb39052b291e4e (diff) | |
download | plan9port-d6316a2de0bc01178f6ca3ddfb064fc19697c5ff.tar.gz plan9port-d6316a2de0bc01178f6ca3ddfb064fc19697c5ff.tar.bz2 plan9port-d6316a2de0bc01178f6ca3ddfb064fc19697c5ff.zip |
call fmtlocaleinit
Diffstat (limited to 'src/cmd/venti')
-rw-r--r-- | src/cmd/venti/srv/zblock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/venti/srv/zblock.c b/src/cmd/venti/srv/zblock.c index 4aa11f45..743b3906 100644 --- a/src/cmd/venti/srv/zblock.c +++ b/src/cmd/venti/srv/zblock.c @@ -5,13 +5,11 @@ void fmtzbinit(Fmt *f, ZBlock *b) { - f->runes = 0; + memset(f, 0, sizeof *f); + fmtlocaleinit(f); f->start = b->data; f->to = f->start; f->stop = (char*)f->start + b->len; - f->flush = nil; - f->farg = nil; - f->nfmt = 0; } #define ROUNDUP(p, n) ((void*)(((uintptr)(p)+(n)-1)&~(uintptr)((n)-1))) |