Commit 1c398929 1c398929444c1c64561c06f856fb0b744a74f25b by Sergey Poznyakoff

Bugfix

* mailbox/url.c (ACCESSOR(is_same,field)): Fix coredump if one
of the accessors returned MU_ERR_NOENT.
1 parent 6cf8cbbb
...@@ -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
......