Skip to content

Commit

Permalink
MT#55283 support leading spaces in string dict
Browse files Browse the repository at this point in the history
Allow usage of `key=[ something ]` in rtpp_flags

One test is affected

Change-Id: Ib3d68f298d2e0cd02c74bf2c7d3d02b055223bc4
  • Loading branch information
rfuchs committed Oct 7, 2024
1 parent 09ec2ab commit f3aa776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions daemon/control_ng_flags_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '[')
Expand Down
2 changes: 1 addition & 1 deletion t/auto-daemon-tests-rtpp-flags.pl
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@
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
Expand Down

0 comments on commit f3aa776

Please sign in to comment.