summaryrefslogtreecommitdiffstats
path: root/xlators/performance/quick-read/src
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2018-02-19 21:42:06 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-03-05 01:38:06 +0000
commit259448385c8017448d1da203979bf1e86126be64 (patch)
tree4704440bc58ac12134cd02ff1ef7d241fcd2912e /xlators/performance/quick-read/src
parent220a687f9f589083cd9d1dbd490ab7060ee59ef1 (diff)
quick-read: Fix coverity issue CHECKED_RETURN
Change-Id: I989e8fe28c86f67b7e54692c01ae3ed6e729aa16 Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/performance/quick-read/src')
-rw-r--r--xlators/performance/quick-read/src/quick-read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 71875200dde..130e2936048 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -268,9 +268,10 @@ qr_content_extract (dict_t *xdata)
{
data_t *data = NULL;
void *content = NULL;
+ int ret = 0;
- dict_get_with_ref (xdata, GF_CONTENT_KEY, &data);
- if (!data)
+ ret = dict_get_with_ref (xdata, GF_CONTENT_KEY, &data);
+ if (ret < 0 || !data)
return NULL;
content = GF_CALLOC (1, data->len, gf_qr_mt_content_t);