X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/7e8aecee0eff40e9fddffd01e6a76513ec7c309e..d27916ce6dc22fd1280edd4bc0c835d8f17b0581:/unix/uxucs.c diff --git a/unix/uxucs.c b/unix/uxucs.c index 8cd300d3..5d3d5af0 100644 --- a/unix/uxucs.c +++ b/unix/uxucs.c @@ -265,7 +265,7 @@ const char *cp_enumerate(int index) int decode_codepage(char *cp_name) { - if (!*cp_name) + if (!cp_name || !*cp_name) return CS_UTF8; return charset_from_localenc(cp_name); }