diff options
author | Russ Cox <rsc@swtch.com> | 2007-11-05 10:52:30 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2007-11-05 10:52:30 -0500 |
commit | f1ea0d2916f842454306bde2e9cdec47f0af9ee4 (patch) | |
tree | 0c8ced7b944f53c9b9506edb0f2c75f44e97a7d3 /src/cmd/upas | |
parent | 523f31487b5a640d5badad033d5798303c60710a (diff) | |
download | plan9port-f1ea0d2916f842454306bde2e9cdec47f0af9ee4.tar.gz plan9port-f1ea0d2916f842454306bde2e9cdec47f0af9ee4.tar.bz2 plan9port-f1ea0d2916f842454306bde2e9cdec47f0af9ee4.zip |
mailfs: handle NIL body
Diffstat (limited to 'src/cmd/upas')
-rw-r--r-- | src/cmd/upas/nfs/imap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c index e81ab270..e1a77773 100644 --- a/src/cmd/upas/nfs/imap.c +++ b/src/cmd/upas/nfs/imap.c @@ -1416,6 +1416,8 @@ nstring(Sx *v) { char *p; + if(isnil(v)) + return estrdup(""); p = v->data; v->data = nil; return p; |