bacdcode.c : Fix ability to write empty string (#871)
This commit is contained in:
@@ -2487,6 +2487,8 @@ int bacnet_character_string_decode(
|
|||||||
string_value = (const char *)&apdu[1];
|
string_value = (const char *)&apdu[1];
|
||||||
(void)characterstring_init(
|
(void)characterstring_init(
|
||||||
char_string, encoding, string_value, len_value - 1);
|
char_string, encoding, string_value, len_value - 1);
|
||||||
|
} else {
|
||||||
|
(void)characterstring_init(char_string, encoding, NULL, 0);
|
||||||
}
|
}
|
||||||
len = (int)len_value;
|
len = (int)len_value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user