ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=6fc3da889b1da451ae61470079e235fcbbe51bf3

commit 6fc3da889b1da451ae61470079e235fcbbe51bf3
Author: Andy Williams <a...@andywilliams.me>
Date:   Sun Apr 12 15:39:47 2015 +0100

    Fix crash where clang encounters too many errors
---
 src/bin/editor/edi_editor.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c
index aacd289..bd8e6cd 100644
--- a/src/bin/editor/edi_editor.c
+++ b/src/bin/editor/edi_editor.c
@@ -295,6 +295,12 @@ _edi_line_status_set(Edi_Editor *editor, unsigned int 
number, Elm_Code_Status_Ty
    eo_do(editor->entry,
          code = elm_code_widget_code_get());
    line = elm_code_file_line_get(code->file, number);
+   if (!line)
+     {
+        if (text)
+          ERR("Status on invalid line %d (\"%s\")", number, text);
+        return;
+     }
 
    ecore_thread_main_loop_begin();
 

-- 


Reply via email to