Skip to content

Commit 07f2d78

Browse files
committed
fix: undo changes in decode.rs
Signed-off-by: addrian-77 <lunguadrian30@gmail.com>
1 parent 2be5243 commit 07f2d78

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tockloader-lib/src/attributes/decode.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub(crate) fn decode_attribute(step: &[u8]) -> Option<DecodedAttribute> {
4343
for n in decoder_key {
4444
key.push(n.expect("Error getting key for attributes."));
4545
}
46+
4647
key = key.trim_end_matches('\0').to_string();
4748
let vlen = step[8];
4849

@@ -57,6 +58,7 @@ pub(crate) fn decode_attribute(step: &[u8]) -> Option<DecodedAttribute> {
5758
for n in decoder_value {
5859
value.push(n.expect("Error getting key for attributes."));
5960
}
61+
6062
value = value.trim_end_matches('\0').to_string();
6163
Some(DecodedAttribute::new(key, value))
6264
}

0 commit comments

Comments
 (0)