tcall fmtlocaleinit - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d6316a2de0bc01178f6ca3ddfb064fc19697c5ff | |
parent 8b0728d3b5fa9afb4e7a4b83f2fb39052b291e4e | |
Author: rsc | |
Date: Wed, 7 Jun 2006 15:28:30 +0000 call fmtlocaleinit Diffstat: M src/cmd/venti/srv/zblock.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- | |
diff --git a/src/cmd/venti/srv/zblock.c b/src/cmd/venti/srv/zblock.c | |
t@@ -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))) |