aboutsummaryrefslogtreecommitdiff
path: root/editors/openoffice-3/files/patch-sal+textenc+tencinfo.c
blob: 7cf80c18d0a075ca989bc1007983efa2df729f1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ../sal/textenc/tencinfo.c.orig	Wed Jul 31 11:44:35 2002
+++ ../sal/textenc/tencinfo.c	Wed Jul 31 11:45:47 2002
@@ -695,6 +695,10 @@
     /* characters. The function search for the first equal string in */
     /* the table. In this table are only the most used mime types. */
     /* Sort order: important */
+
+    if (pMimeCharset == NULL)
+	pMimeCharset = "usascii";
+
     static ImplStrCharsetDef const aVIPMimeCharsetTab[] =
     {
         { "usascii", RTL_TEXTENCODING_ASCII_US },