update the edit segfault patch

This commit is contained in:
Jindrich Novy 2010-12-08 12:34:59 +01:00
parent 5e06b95cc2
commit a1b9b0680a

View File

@ -1,7 +1,7 @@
diff -up mc-4.7.2.99/src/editor/editwidget.c.mcviewsegfault mc-4.7.2.99/src/editor/editwidget.c diff -up mc-4.7.5-pre1/src/editor/editwidget.c.mcviewsegfault mc-4.7.5-pre1/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.5-pre1/src/editor/editwidget.c.mcviewsegfault 2010-12-03 09:53:38.000000000 +0100
+++ mc-4.7.2.99/src/editor/editwidget.c 2010-06-08 13:28:14.960729778 +0200 +++ mc-4.7.5-pre1/src/editor/editwidget.c 2010-12-08 12:33:35.943724419 +0100
@@ -286,7 +286,7 @@ edit_file (const char *_file, int line) @@ -387,7 +387,7 @@ edit_file (const char *_file, int line)
const char * const char *
edit_get_file_name (const WEdit * edit) edit_get_file_name (const WEdit * edit)
{ {
@ -9,4 +9,4 @@ diff -up mc-4.7.2.99/src/editor/editwidget.c.mcviewsegfault mc-4.7.2.99/src/edit
+ return edit?edit->filename:NULL; + return edit?edit->filename:NULL;
} }
void /* --------------------------------------------------------------------------------------------- */