summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-14 19:40:29 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-14 20:01:33 +0100
commit1c77d034e53c61f91477c2edcd0fb4127d926444 (patch)
tree5669ceba1aad55f766b3a9a9ac9ddb4bb1426be7 /lib
parentMerge pull request #3799 from donaldsharp/show_debugging (diff)
downloadfrr-1c77d034e53c61f91477c2edcd0fb4127d926444.tar.xz
frr-1c77d034e53c61f91477c2edcd0fb4127d926444.zip
lib: fix uninitialized value use in privs.c
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/privs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/privs.c b/lib/privs.c
index 838ff8fc9..14f009019 100644
--- a/lib/privs.c
+++ b/lib/privs.c
@@ -789,7 +789,7 @@ void zprivs_preinit(struct zebra_privs_t *zprivs)
void zprivs_init(struct zebra_privs_t *zprivs)
{
- gid_t groups[NGROUPS_MAX];
+ gid_t groups[NGROUPS_MAX] = {};
int i, ngroups = 0;
int found = 0;