From 165827e3812942f8a9bd96880bc316820a297821 Mon Sep 17 00:00:00 2001 From: Akarsha Rai Date: Tue, 26 Sep 2017 08:51:04 -0400 Subject: protocol: UNINIT coverity fix Problem: Coverity issue due uninitialized variable. Solution: Initialized the variable appropriately. Bug: 789278 Change-Id: I6e9356bbcd8fa97006b605ee162458d4a2eb5887 Signed-off-by: Akarsha Rai --- xlators/protocol/server/src/server-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index a639a780b8a..385e5b70ee8 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -29,7 +29,7 @@ gid_resolve (server_conf_t *conf, call_stack_t *root) struct passwd mypw; char mystrs[1024]; struct passwd *result; - gid_t *mygroups; + gid_t *mygroups = NULL; gid_list_t gl; const gid_list_t *agl; int ngroups; -- cgit