Bugfix
* mailbox/url.c (ACCESSOR(is_same,field)): Fix coredump if one of the accessors returned MU_ERR_NOENT.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -676,8 +676,8 @@ ACCESSOR(is_same,field) (mu_url_t url1, mu_url_t url2) \ | ... | @@ -676,8 +676,8 @@ ACCESSOR(is_same,field) (mu_url_t url1, mu_url_t url2) \ |
676 | if (status2 && status2 != MU_ERR_NOENT) \ | 676 | if (status2 && status2 != MU_ERR_NOENT) \ |
677 | return 0; \ | 677 | return 0; \ |
678 | \ | 678 | \ |
679 | if (status1 && status1 == status2) /* Both fields are missing */ \ | 679 | if (status1 || status2) \ |
680 | return 1; \ | 680 | return status1 == status2; /* Both fields are missing */ \ |
681 | return mu_c_strcasecmp (s1, s2) == 0; \ | 681 | return mu_c_strcasecmp (s1, s2) == 0; \ |
682 | } | 682 | } |
683 | 683 | ... | ... |
-
Please register or sign in to post a comment