On 4/14/14, 5:34 AM, David Binderman wrote:
> Hello there,
> 
>  [bind.c:2238]: (style) Array index 'j' is used before limits check.
> 
> Source code is
> 
>           for (j = 0; invokers[j] && j < 5; j++)
> 
> Suggest new code
> 
>           for (j = 0; (j < 5) && (invokers[j] != NULL); j++)

Can you give me a use case for which this makes a difference?


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to