Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
e16fc94b
Commit
e16fc94b
authored
Feb 05, 2019
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator: fix crash when more than one extra test provided
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
9d2d2c49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tools/configurator/configurator.c
tools/configurator/configurator.c
+2
-1
No files found.
tools/configurator/configurator.c
View file @
e16fc94b
...
@@ -888,7 +888,8 @@ static void read_tests(size_t num_tests)
...
@@ -888,7 +888,8 @@ static void read_tests(size_t num_tests)
{
{
while
(
read_test
(
tests
+
num_tests
))
{
while
(
read_test
(
tests
+
num_tests
))
{
num_tests
++
;
num_tests
++
;
tests
=
realloc
(
tests
,
num_tests
*
sizeof
(
tests
[
0
]));
tests
=
realloc
(
tests
,
(
num_tests
+
1
)
*
sizeof
(
tests
[
0
]));
tests
[
num_tests
].
name
=
NULL
;
}
}
}
}
...
...
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