summaryrefslogtreecommitdiffstats
path: root/charset.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-24 17:04:45 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-24 17:04:45 +0000
commit45eb8193b7c840d5560c9d6f49ad7dc1454051c2 (patch)
tree887613adb42bfa27c3693ed2266f2be2088c31ff /charset.c
parent38a9f98fcb4765642a0103aca6004ce2d63b8236 (diff)
[patch-0.94.7i.gt.charset-send.1.gz] With the new charset support in
mutt there are better chances to say whether a mail to send consists of characters of the ASCII set only (the charset should be "us-ascii" then) or of other characters from the given charset (this charset should be given then): ASCII characters have the unicode values from 0 to 127.
Diffstat (limited to 'charset.c')
-rw-r--r--charset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/charset.c b/charset.c
index bbdd0d1c..429f7212 100644
--- a/charset.c
+++ b/charset.c
@@ -147,6 +147,9 @@ CHARSET *mutt_get_charset(const char *name)
char buffer[SHORT_STRING];
char *real_charset;
+ if (!name || !*name)
+ return (NULL);
+
init_charsets();
canonical_charset(buffer, sizeof(buffer), name);