forked from enlightenment/enventor
enventor_smart: change the postfix operator to prefix operator to check next pointer
Summary: if(!(ptr++)) code check current pointer then it is updated next pointer. so I changed the postfix operator to prefix operator to check next pointer in the condition. @fix Reviewers: Jaehyun_Cho, NikaWhite, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D3762
This commit is contained in:
parent
3f8dfe944c
commit
3a4e1dec9e
|
@ -133,7 +133,7 @@ build_err_noti_cb(void *data, const char *msg)
|
|||
{
|
||||
ptr += strlen(".edc");
|
||||
if (!ptr || (ptr[0] != ':')) goto call_error;
|
||||
if (!(ptr++)) goto call_error;
|
||||
if (!(++ptr)) goto call_error;
|
||||
line_num = atoi(ptr);
|
||||
}
|
||||
else if ((ptr = strstr(utf8, "image")) ||
|
||||
|
|
Loading…
Reference in New Issue