forked from enlightenment/enventor
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:
parent
3530641830
commit
ed5c01209d
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue