forked from enlightenment/enventor
syntax_indent: add NULL check
Summary: fix static analyzer warning Reviewers: Hermet, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D4003
This commit is contained in:
parent
722d245929
commit
7990e68b8e
|
@ -621,7 +621,8 @@ indent_delete_apply(indent_data *id, const char *del, int cur_line)
|
|||
|
||||
int rd_cur_pos = evas_textblock_cursor_pos_get(cur);
|
||||
|
||||
int len = strlen(utf8);
|
||||
int len = 0;
|
||||
if (utf8) len = strlen(utf8);
|
||||
if (len <= 0) goto end;
|
||||
|
||||
evas_textblock_cursor_paragraph_char_last(cur);
|
||||
|
|
Loading…
Reference in New Issue