From dcff68eb2e9837a1db6634571e8e03fc57ff3182 Mon Sep 17 00:00:00 2001 From: arao Date: Thu, 19 Feb 2015 14:37:18 +0530 Subject: symlink-cache: Fixing coverity issues CID: 1124389 Misspelt variable leading to dead code and memory leak, corrected. Change-Id: I1278f07f81e2db33640e0f289558d919343cb6ce BUG: 789278 Signed-off-by: arao Reviewed-on: http://review.gluster.org/9694 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/performance/symlink-cache/src/symlink-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit