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:
taehyub 2016-03-07 12:02:09 +09:00 committed by Hermet Park
parent 3f8dfe944c
commit 3a4e1dec9e
1 changed files with 1 additions and 1 deletions

View File

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