Skip to content

Commit

Permalink
Silence a spurious error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Oct 28, 2021
1 parent 7098094 commit a048646
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mgos_sys_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ void mgos_conf_parse_dev(const char *spec, const char *acl,
goto out;
}
// If it doesn't look like JSON, abort early.
if (data[0] != '{') {
LOG(LL_INFO, ("Not a valid config"));
goto out;
}
if (data[0] != '{') goto out;
s = mg_mk_str_n(data + data_len, data_size - data_len);
end = mg_strchr(s, '\0');
if (end == NULL) {
Expand Down

0 comments on commit a048646

Please sign in to comment.