mailfs: handle NIL body
This commit is contained in:
parent
523f31487b
commit
f1ea0d2916
@ -1416,6 +1416,8 @@ nstring(Sx *v)
|
|||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
if(isnil(v))
|
||||||
|
return estrdup("");
|
||||||
p = v->data;
|
p = v->data;
|
||||||
v->data = nil;
|
v->data = nil;
|
||||||
return p;
|
return p;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user