From d5409aae63a7ac5e5b3ea6cfa16c6250a028291c Mon Sep 17 00:00:00 2001 From: Sakshi Date: Wed, 15 Apr 2015 13:28:24 +0530 Subject: libglusterfs: coverity fix fix missing varargs cleanup CID 1124856: string overflow CID 1124656: NULL return CID 1124374: constant expression Change-Id: Iead530c599bdfef05a40c68b892215f4e4f02247 BUG: 789278 Signed-off-by: Sakshi Bansal Reviewed-on: http://review.gluster.org/9630 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- libglusterfs/src/common-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/common-utils.c') diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index a1b67596c6e..ac8babcc8ad 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -1363,7 +1363,7 @@ gf_string2int64 (const char *str, int64_t *n) if (rv != 0) return rv; - if ((l >= INT64_MIN) && (l <= INT64_MAX)) { + if (l <= INT64_MAX) { *n = (int64_t) l; return 0; } -- cgit