bacdcode.c : Fix ability to write empty string (#871)

This commit is contained in:
Jonathan
2024-12-10 19:23:34 +01:00
committed by GitHub
parent d4cbec91e2
commit 791c1e5d3b
+2
View File
@@ -2487,6 +2487,8 @@ int bacnet_character_string_decode(
string_value = (const char *)&apdu[1];
(void)characterstring_init(
char_string, encoding, string_value, len_value - 1);
} else {
(void)characterstring_init(char_string, encoding, NULL, 0);
}
len = (int)len_value;
}