cairo-boilerplate-getopt.c:63]: (style) Array index 'argv_index' is used before limits check.
Submitted by dcb..@..il.com
Assigned to Chris Wilson @ickle
Description
Static analyser cppcheck found the above problem.
Source code is
while(prev_argv[++argv_index] && prev_argv[argv_index][0] != '-'
&& argv_index < argv_index2+1);
Suggest put limit check before use.