Yep, sure. I missed that (*p != NULL) check.

Thanks, Michael

On 29 March 2013 05:15, Segher Boessenkool <seg...@kernel.crashing.org> wrote:
>> I'd suggest rewriting this expression in some easier way:
>>               p += (*p == '%' && *(p + 1)) ? 2 : 1;
>>
>> I'd prefer
>>               if (*p == '%')
>>                 p++;
>>               p++;
>
>
> That's not the same thing though.  Maksim's code is correct,
> although it could certainly be written more clearly.
>
> Maybe something like
>
>
>   if (*p == '%')
>     p++;
>   if (*p)
>     p++;
>
>
> Segher
>



-- 
---
Best regards,
Michael V. Zolotukhin,
Software Engineer
Intel Corporation.

Reply via email to