X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/7e8aecee0eff40e9fddffd01e6a76513ec7c309e..551a4acb84abdf14340214d90188e33e8c657b6f:/unix/uxucs.c?ds=inline 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); }