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:
Bowon Ryu 2016-06-02 15:28:56 +09:00 committed by Jaehyun Cho
parent 722d245929
commit 7990e68b8e
1 changed files with 2 additions and 1 deletions

View File

@ -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);