Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常顺宇
OpenXG-RAN
Commits
e54f87a0
Commit
e54f87a0
authored
May 04, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: forgot malloc return check
parent
8cca28b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/utils/T/tracer/database.c
common/utils/T/tracer/database.c
+2
-2
No files found.
common/utils/T/tracer/database.c
View file @
e54f87a0
...
...
@@ -459,7 +459,7 @@ int database_get_ids(void *_d, char ***ids)
{
database
*
d
=
_d
;
int
i
;
*
ids
=
malloc
(
d
->
isize
*
sizeof
(
char
**
));
*
ids
=
malloc
(
d
->
isize
*
sizeof
(
char
**
));
if
(
*
ids
==
NULL
)
abort
();
for
(
i
=
0
;
i
<
d
->
isize
;
i
++
)
(
*
ids
)[
i
]
=
d
->
i
[
i
].
name
;
return
d
->
isize
;
}
...
...
@@ -468,7 +468,7 @@ int database_get_groups(void *_d, char ***groups)
{
database
*
d
=
_d
;
int
i
;
*
groups
=
malloc
(
d
->
gsize
*
sizeof
(
char
**
));
*
groups
=
malloc
(
d
->
gsize
*
sizeof
(
char
**
));
if
(
*
groups
==
NULL
)
abort
();
for
(
i
=
0
;
i
<
d
->
gsize
;
i
++
)
(
*
groups
)[
i
]
=
d
->
g
[
i
].
name
;
return
d
->
gsize
;
}
...
...
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