X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c786f763657d6ca781f6d9cd0cb396899163c3f3..98ec9dbebc5584ba1b903d314b25e8c562891483:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index a78e5ee7f5..2332dc12ac 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -299,10 +299,13 @@ static bool IsKnownUnimportantField(const wxString& field); // a) for "brief" format: // // b) for "expanded" format: -// type= \ -// desc="" \ +// type= BACKSLASH +// desc="" BACKSLASH // exts="" // +// (where BACKSLASH is a literal '\\' which we can't put here because cpp +// misinterprets it) +// // We try to autodetect the format of mime.types: if a non-comment line starts // with "type=" we assume the second format, otherwise the first one. @@ -2203,7 +2206,7 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName, // the flags and field values on the current line bool needsterminal = FALSE, copiousoutput = FALSE; - wxMimeArrayString *entry; + wxMimeArrayString *entry = NULL; // suppress compiler warning wxString strType, strOpenCmd,