Jan Luebbe 3fd1b63453 gkeyfile: Fix overwriting of GError
When parsing a line of "key3=foo\i\" in a keyfile,
g_key_file_parse_value_as_string currently first sets the error to
'contains invalid escape' and later to 'contains escape character at end
of line'.

This leaks the first GError and causes the following warning message:
  Error set over the top of a previous GError or uninitialized memory.
  This indicates a bug in someone's code. You must ensure an error is
  NULL before it's set. The overwriting error message was: Key file
  contains escape character at end of line

Fix this by returning when an error is detected. As we may have
collected data in pieces, we instead collect to a tmp_pieces GSList and
free it on error.
2023-08-31 11:07:19 +01:00
..
2023-08-31 11:07:19 +01:00
2022-06-27 17:53:25 -04:00
2022-05-23 09:19:45 -04:00
2022-06-29 16:05:09 +02:00
2023-08-31 11:07:19 +01:00
2020-11-17 15:50:07 +00:00
2023-02-09 13:36:51 +00:00
2023-02-09 13:36:51 +00:00
2018-01-04 22:19:30 +01:00
2023-04-20 08:37:27 -04:00
2022-07-25 22:30:22 +01:00
2021-09-21 09:41:29 +00:00
2021-11-18 14:32:09 +00:00
2023-02-09 13:36:51 +00:00
2023-01-26 10:23:41 +00:00
2023-01-26 11:27:31 +00:00
2023-01-26 11:27:31 +00:00
2023-01-27 11:58:56 +03:00