Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Merge requests
!411
fix(config): Clear config before reloading
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix(config): Clear config before reloading
schneider/211-config-reload
into
master
Overview
5
Commits
1
Pipelines
2
Changes
1
All threads resolved!
Hide all comments
Merged
schneider
requested to merge
schneider/211-config-reload
into
master
4 years ago
Overview
5
Commits
1
Pipelines
2
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#211 (closed)
0
0
Merge request reports
Viewing commit
539b02ec
Show latest version
1 file
+
15
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
539b02ec
fix(config): Clear config before reloading
· 539b02ec
schneider
authored
4 years ago
Closes
#211
epicardium/modules/config.c
+
15
−
0
Options
@@ -246,6 +246,21 @@ void load_config(void)
return
;
}
/* Clear any existing configuration */
/* Don't free the blocks as we are most likely
* going to re-use all of them. */
config_block
*
current
;
if
(
config_data
!=
NULL
)
{
current
=
config_data
;
while
(
true
)
{
memset
(
current
->
slots
,
0
,
sizeof
(
current
->
slots
));
if
(
current
->
next
==
NULL
)
{
break
;
}
current
=
current
->
next
;
}
}
char
buf
[
128
];
int
nread
;
parser_state
s
;
Loading