Fix xsettings list copy
If there is only 1 element in the list or memory allocation fails on the 2nd iteration then new->next is uninitialised.
See: https://github.com/libsdl-org/SDL/pull/10521
Signed-off-by: Emmanuele Bassi ebassi@gnome.org
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
If there is only 1 element in the list or memory allocation fails on the 2nd iteration then new->next is uninitialised.
See: https://github.com/libsdl-org/SDL/pull/10521
Signed-off-by: Emmanuele Bassi ebassi@gnome.org