Skip to content

Commit

Permalink
fixed default section loading, if there is no definition for the pressed
Browse files Browse the repository at this point in the history
key
  • Loading branch information
Hartie95 committed Feb 19, 2016
1 parent a6eec05 commit 9ac1780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootloader/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main() {
switch (config_err) {
case 0:
// section not found, try to load [DEFAULT] section
if (!app.path) {
if (strlen(app.path)==0) {
debug("section not found, trying to load the default section");
app.section = "DEFAULT";
// don't need to check error again
Expand Down

0 comments on commit 9ac1780

Please sign in to comment.