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
a5452e50
Commit
a5452e50
authored
Jun 14, 2018
by
2xsec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverity: #1437017
Uninitialized pointer Signed-off-by:
2xsec
<
dh48.jeong@samsung.com
>
parent
aef295c2
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 @
a5452e50
...
@@ -192,6 +192,8 @@ static char **get_groupnames(void)
...
@@ -192,6 +192,8 @@ static char **get_groupnames(void)
return
NULL
;
return
NULL
;
}
}
memset
(
groupnames
,
0
,
sizeof
(
char
*
)
*
(
ngroups
+
1
));
bufsize
=
sysconf
(
_SC_GETGR_R_SIZE_MAX
);
bufsize
=
sysconf
(
_SC_GETGR_R_SIZE_MAX
);
if
(
bufsize
==
-
1
)
if
(
bufsize
==
-
1
)
bufsize
=
1024
;
bufsize
=
1024
;
...
@@ -206,8 +208,6 @@ static char **get_groupnames(void)
...
@@ -206,8 +208,6 @@ static char **get_groupnames(void)
return
NULL
;
return
NULL
;
}
}
memset
(
groupnames
,
0
,
sizeof
(
char
*
)
*
(
ngroups
+
1
));
for
(
i
=
0
;
i
<
ngroups
;
i
++
)
{
for
(
i
=
0
;
i
<
ngroups
;
i
++
)
{
ret
=
getgrgid_r
(
group_ids
[
i
],
&
grent
,
buf
,
bufsize
,
&
grentp
);
ret
=
getgrgid_r
(
group_ids
[
i
],
&
grent
,
buf
,
bufsize
,
&
grentp
);
if
(
!
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