summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/performance/symlink-cache/src/symlink-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/symlink-cache/src/symlink-cache.c b/xlators/performance/symlink-cache/src/symlink-cache.c
index 3b5fbc252ec..c65629b6993 100644
--- a/xlators/performance/symlink-cache/src/symlink-cache.c
+++ b/xlators/performance/symlink-cache/src/symlink-cache.c
@@ -186,7 +186,7 @@ sc_cache_validate (xlator_t *this, inode_t *inode, struct iatt *buf)
sc_cache_set (this, inode, buf, NULL);
inode_ctx_get (inode, this, &tmp_sc);
- if (!sc) {
+ if (!tmp_sc) {
gf_log (this->name, GF_LOG_ERROR,
"out of memory :(");
return 0;