diff options
author | Akarsha Rai <akrai@redhat.com> | 2017-09-26 08:51:04 -0400 |
---|---|---|
committer | mohammed rafi kc <rkavunga@redhat.com> | 2017-09-27 14:53:44 +0000 |
commit | 165827e3812942f8a9bd96880bc316820a297821 (patch) | |
tree | 093ee5d1acbd1757bb9e61ac1cdcca3086fa38e1 /xlators/protocol/server | |
parent | 77f89a2ebac1c19c4f22f33aba536bbe7e19e665 (diff) |
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 <akrai@redhat.com>
Diffstat (limited to 'xlators/protocol/server')
-rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |