summaryrefslogtreecommitdiffstats
path: root/xlators/features/index
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/index')
-rw-r--r--xlators/features/index/src/index.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c
index 8cdb5feb870..482292a00f9 100644
--- a/xlators/features/index/src/index.c
+++ b/xlators/features/index/src/index.c
@@ -614,11 +614,11 @@ index_find_xattr_type (dict_t *d, char *k, data_t *v)
int idx = -1;
index_priv_t *priv = THIS->private;
- if (is_xattr_in_watchlist (d, k, v,
- priv->dirty_watchlist))
+ if (priv->dirty_watchlist && is_xattr_in_watchlist (d, k, v,
+ priv->dirty_watchlist))
idx = DIRTY;
- else if (is_xattr_in_watchlist (d, k, v,
- priv->pending_watchlist))
+ else if (priv->pending_watchlist && is_xattr_in_watchlist (d, k, v,
+ priv->pending_watchlist))
idx = PENDING;
return idx;