MT#55283 support leading spaces in string dict

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

One test is affected

Change-Id: Ib3d68f298d2e0cd02c74bf2c7d3d02b055223bc4
(cherry picked from commit f3aa776b93)
mr13.0
Richard Fuchs 1 year ago
parent d165df66ce
commit 68f8af357f

@ -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