From: Dodji Seketeli Date: Thu, 26 Jan 2023 14:39:14 +0000 (+0100) Subject: ini: Fix parsing list property values X-Git-Tag: upstream/2.3~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ead575e7674d83c18487fe4dbaf4d4e390b9339;p=platform%2Fupstream%2Flibabigail.git ini: Fix parsing list property values 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 --- 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; read_next_char(c); ABG_ASSERT(c == ','); + skip_white_spaces(); } if (!content.empty())