[01/13] ini: Fix parsing list property values

Message ID 87y1ofq8yt.fsf_-_@redhat.com
State New
Series Support negative suppression specifications |

Commit Message

Dodji Seketeli March 2, 2023, 6:55 p.m. UTC

While looking at something else, I came across an issue in
read_context::read_list_property_value.  This function requires
elements of a list property value (separated by a comma) to be on a
single line, for instance.  This is because the code forgets to parse
white spaces after the comma.

Fixed thus.

	* src/abg-ini.cc (read_context::read_list_property_value): Expect
	white spaces after the comma.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
 src/abg-ini.cc | 1 +
 1 file changed, 1 insertion(+)


diff --git a/src/abg-ini.cc b/src/abg-ini.cc
index 227e3c84..db041962 100644
--- a/src/abg-ini.cc
+++ b/src/abg-ini.cc
@@ -1440,6 +1440,7 @@  public:
 	char c = 0;
 	ABG_ASSERT(c == ',');
+	skip_white_spaces();
     if (!content.empty())