Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
40f3bd6f
Unverified
Commit
40f3bd6f
authored
Jun 14, 2018
by
Christian Brauner
Committed by
GitHub
Jun 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2402 from 2xsec/coverity1
coverity: #1437017
parents
aef295c2
a5452e50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxc_user_nic.c
src/lxc/cmd/lxc_user_nic.c
+2
-2
No files found.
src/lxc/cmd/lxc_user_nic.c
View file @
40f3bd6f
...
...
@@ -192,6 +192,8 @@ static char **get_groupnames(void)
return
NULL
;
}
memset
(
groupnames
,
0
,
sizeof
(
char
*
)
*
(
ngroups
+
1
));
bufsize
=
sysconf
(
_SC_GETGR_R_SIZE_MAX
);
if
(
bufsize
==
-
1
)
bufsize
=
1024
;
...
...
@@ -206,8 +208,6 @@ static char **get_groupnames(void)
return
NULL
;
}
memset
(
groupnames
,
0
,
sizeof
(
char
*
)
*
(
ngroups
+
1
));
for
(
i
=
0
;
i
<
ngroups
;
i
++
)
{
ret
=
getgrgid_r
(
group_ids
[
i
],
&
grent
,
buf
,
bufsize
,
&
grentp
);
if
(
!
grentp
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment