Merge pull request #734 from avar/avar/clang-warning

mu-store: Silence confusing code that's throwing a clang warning
This commit is contained in:
Dirk-Jan C. Binnema
2015-12-15 18:57:24 +02:00

View File

@ -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;
}