[packages] mc: update to v4.6.2, update URLs, cleanup
[openwrt/svn-archive/archive.git] / utils / mc / patches / 100-fix-missingsyntax.patch
1 --- a/edit/syntax.c
2 +++ b/edit/syntax.c
3 @@ -1193,10 +1193,7 @@ edit_load_syntax (WEdit *edit, char ***p
4 r = edit_read_syntax_file (edit, pnames, f, edit ? edit->filename : 0,
5 get_first_editor_line (edit), type);
6 if (r == -1) {
7 - edit_free_syntax_rules (edit);
8 - message (D_ERROR, _(" Load syntax file "),
9 - _(" Cannot open file %s \n %s "), f,
10 - unix_error_string (errno));
11 + /* missing syntax file */
12 } else if (r) {
13 edit_free_syntax_rules (edit);
14 message (D_ERROR, _(" Load syntax file "),