summaryrefslogtreecommitdiffstats
path: root/src/lib9/fcallfmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/fcallfmt.c')
-rw-r--r--src/lib9/fcallfmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/fcallfmt.c b/src/lib9/fcallfmt.c
index fef779d8..81980136 100644
--- a/src/lib9/fcallfmt.c
+++ b/src/lib9/fcallfmt.c
@@ -124,7 +124,7 @@ fcallfmt(Fmt *fmt)
break;
case Rstat:
p = seprint(buf, e, "Rstat tag %ud ", tag);
- if(f->nstat > sizeof tmp)
+ if(f->stat == nil || f->nstat > sizeof tmp)
seprint(p, e, " stat(%d bytes)", f->nstat);
else{
d = (Dir*)tmp;
@@ -135,7 +135,7 @@ fcallfmt(Fmt *fmt)
break;
case Twstat: /* 126 */
p = seprint(buf, e, "Twstat tag %ud fid %ud", tag, fid);
- if(f->nstat > sizeof tmp)
+ if(f->stat == nil || f->nstat > sizeof tmp)
seprint(p, e, " stat(%d bytes)", f->nstat);
else{
d = (Dir*)tmp;