MT#55283 support leading spaces in string dict

Allow usage of `key=[ something ]` in rtpp_flags

One test is affected

Change-Id: Ib3d68f298d2e0cd02c74bf2c7d3d02b055223bc4
pull/1870/head
Richard Fuchs 1 year ago
parent 09ec2abf6e
commit f3aa776b93

@ -79,6 +79,8 @@ static int rtpp_is_dict_list(rtpp_pos *a) {
if (!skip_char(&list, '['))
return 0;
// check contents
if (list.len == 0)
list = a->remainder; // could be just leading spaces?
if (list.len == 0)
return 0; // unexpected end of string
if (list.s[0] == '[')

@ -627,7 +627,7 @@ a=test
a=quux
----------------------------------
v=0
o=- 1545997027 1 IN IP4 198.51.100.1
o=- 1545997027 1 IN IP4 203.0.113.1
s=tester
t=0 0
a=quux

Loading…
Cancel
Save