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.
authored by Mathieu Eyraud and committed by Sam Lantinga 2 years ago 45bfa8e5 dcc3dd4c