packages/utils/mc/patches/100-fix-missingsyntax.patch
nico 1f82846b13 [packages] mc: update to v4.6.2, update URLs, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17940 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-06 02:16:30 +00:00

15 lines
526 B
Diff

--- a/edit/syntax.c
+++ b/edit/syntax.c
@@ -1193,10 +1193,7 @@ edit_load_syntax (WEdit *edit, char ***p
r = edit_read_syntax_file (edit, pnames, f, edit ? edit->filename : 0,
get_first_editor_line (edit), type);
if (r == -1) {
- edit_free_syntax_rules (edit);
- message (D_ERROR, _(" Load syntax file "),
- _(" Cannot open file %s \n %s "), f,
- unix_error_string (errno));
+ /* missing syntax file */
} else if (r) {
edit_free_syntax_rules (edit);
message (D_ERROR, _(" Load syntax file "),