mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpconfig: do not add NULL to a GStrv.
gimp_scanner_parse_string() transforms the empty string into NULL, which might be what we want elsewhere, but definitely not for GStrv since NULL is the end flag for the string array.
This commit is contained in:
parent
79faa06693
commit
85a686b8c5
1 changed files with 2 additions and 8 deletions
|
@ -123,13 +123,7 @@ gimp_config_deserialize_strv (GValue *value,
|
|||
break;
|
||||
}
|
||||
|
||||
/* Not an error for scanned string to be empty.*/
|
||||
|
||||
/* Adding string to builder DOES not transfer ownership,
|
||||
* the builder will copy the string.
|
||||
*/
|
||||
g_strv_builder_add (builder, scanned_string);
|
||||
|
||||
g_strv_builder_add (builder, scanned_string ? scanned_string : "");
|
||||
g_free (scanned_string);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue