edc_parser: check null for code safety

Summary:
check null for code safety

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3776
This commit is contained in:
taehyub 2016-03-07 20:44:23 +09:00 committed by Hermet Park
parent 3530641830
commit ed5c01209d
1 changed files with 1 additions and 2 deletions

View File

@ -543,7 +543,7 @@ cur_state_thread_blocking(void *data, Ecore_Thread *thread EINA_UNUSED)
while (temp_pos && (temp_pos < name_end))
{
space_pos = temp_pos;
temp_pos++;
if (++temp_pos) break;
temp_pos = strchr(temp_pos, ' ');
}
@ -552,7 +552,6 @@ cur_state_thread_blocking(void *data, Ecore_Thread *thread EINA_UNUSED)
while (temp_pos && (temp_pos < name_end))
{
tab_pos = temp_pos;
temp_pos++;
temp_pos = strchr(p, '\t');
}