mc/mc-mcviewsegfault.patch
Jindrich Novy 6e41fe8dc1 - BR: groff (#602115)
- fix segfault in mcview (#602124)
2010-06-09 08:15:30 +00:00

13 lines
458 B
Diff

diff -up mc-4.7.2.99/src/editor/editwidget.c.mcviewsegfault mc-4.7.2.99/src/editor/editwidget.c
--- mc-4.7.2.99/src/editor/editwidget.c.mcviewsegfault 2010-06-08 13:23:03.000000000 +0200
+++ mc-4.7.2.99/src/editor/editwidget.c 2010-06-08 13:28:14.960729778 +0200
@@ -286,7 +286,7 @@ edit_file (const char *_file, int line)
const char *
edit_get_file_name (const WEdit * edit)
{
- return edit->filename;
+ return edit?edit->filename:NULL;
}
void