ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=881860bc150c0237e8c87fef948df64c00bbbea2

commit 881860bc150c0237e8c87fef948df64c00bbbea2
Author: Andy Williams <a...@andywilliams.me>
Date:   Wed Feb 25 23:29:31 2015 +0000

    console: Fix possible crash if errors occur before make starts
---
 src/bin/edi_consolepanel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/edi_consolepanel.c b/src/bin/edi_consolepanel.c
index 5e178c4..9979bc0 100644
--- a/src/bin/edi_consolepanel.c
+++ b/src/bin/edi_consolepanel.c
@@ -132,7 +132,8 @@ static void _edi_consolepanel_append_line_type(const char 
*line, Eina_Bool err)
 {
    _edi_consolepanel_parse_directory(line);
 
-   elm_code_file_line_append(_edi_console_code->file, line, strlen(line), err 
? strdup(_current_dir) : NULL);
+   elm_code_file_line_append(_edi_console_code->file, line, strlen(line),
+                             err && _current_dir ? strdup(_current_dir) : 
NULL);
 
    _edi_test_line_callback(line);
 }

-- 


Reply via email to