X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71c744a5764596f392f6912eb32221109f11c60..f861258fcace51a1aaba2f31c7498b3ba9e31371:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 7759ed8766..532e77b6d5 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -2021,6 +2021,7 @@ static void wxLoadCharacterSets(void) static wxCharacterSet *wxFindCharacterSet(const wxChar *charset) { + if (!charset) return (wxCharacterSet *)NULL; wxLoadCharacterSets(); for (size_t n=0; n