more stable
This commit is contained in:
parent
b649ca370d
commit
0487c58db6
1 changed files with 5 additions and 1 deletions
|
@ -455,6 +455,7 @@ void sml_tupel_entry_free(sml_tupel_entry *tupel) {
|
|||
}
|
||||
|
||||
|
||||
|
||||
// SML_PERIOD_ENTRY
|
||||
|
||||
sml_period_entry *sml_period_entry_init() {
|
||||
|
@ -481,11 +482,14 @@ sml_period_entry *sml_period_entry_parse(sml_buffer *buf) {
|
|||
}
|
||||
|
||||
period->obj_name = sml_octet_string_parse(buf);
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
period->unit = sml_unit_parse(buf);
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
period->scaler = sml_i8_parse(buf);
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
period->value = sml_value_parse(buf);
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
period->value_signature = sml_octet_string_parse(buf);
|
||||
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
|
||||
return period;
|
||||
|
|
Loading…
Add table
Reference in a new issue