ini: Fix parsing list property values
authorDodji Seketeli <dodji@redhat.com>
Thu, 26 Jan 2023 14:39:14 +0000 (15:39 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 1 Mar 2023 12:20:03 +0000 (13:20 +0100)
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

index 227e3c845b00e3a1a258e24587246d580b7afd67..db04196280083ae096889d6ab61e5297561ff971 100644 (file)
@@ -1440,6 +1440,7 @@ public:
        char c = 0;
        read_next_char(c);
        ABG_ASSERT(c == ',');
+       skip_white_spaces();
       }
 
     if (!content.empty())