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) \
if (status2 && status2 != MU_ERR_NOENT) \
return 0; \
\
if (status1 && status1 == status2) /* Both fields are missing */ \
return 1; \
if (status1 || status2) \
return status1 == status2; /* Both fields are missing */ \
return mu_c_strcasecmp (s1, s2) == 0; \
}
......