diff options
author | Poornima G <pgurusid@redhat.com> | 2018-02-19 21:42:06 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2018-03-05 01:38:06 +0000 |
commit | 259448385c8017448d1da203979bf1e86126be64 (patch) | |
tree | 4704440bc58ac12134cd02ff1ef7d241fcd2912e /xlators/performance | |
parent | 220a687f9f589083cd9d1dbd490ab7060ee59ef1 (diff) |
quick-read: Fix coverity issue CHECKED_RETURN
Change-Id: I989e8fe28c86f67b7e54692c01ae3ed6e729aa16
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 5 |
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); |