upas/Mail: check if plumb attrs are nil
This commit is contained in:
parent
62a4e64d31
commit
8f1954c0dd
1 changed files with 2 additions and 0 deletions
|
@ -802,6 +802,8 @@ changemesg(Plumbmsg *pm)
|
|||
|
||||
digest = plumblookup(pm->attr, "digest");
|
||||
action = plumblookup(pm->attr, "mailtype");
|
||||
if(digest == nil || action == nil)
|
||||
return;
|
||||
if(strcmp(action, "new") == 0){
|
||||
if((m = load(pm->data, digest, 1)) == nil)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue