diff --git a/lib/mu-store.cc b/lib/mu-store.cc index 21410064..ff23e78b 100644 --- a/lib/mu-store.cc +++ b/lib/mu-store.cc @@ -74,7 +74,7 @@ xapian_get_metadata (const gchar *xpath, const gchar *key) g_return_val_if_fail (xpath, NULL); g_return_val_if_fail (key, NULL); - if (!access(xpath, F_OK) == 0) { + if (access(xpath, F_OK) != 0) { g_warning ("cannot access %s: %s", xpath, strerror(errno)); return NULL; }