Commit c107164f authored by Sean McBride's avatar Sean McBride

Move index ‘i’ check after usage

Silences cppcheck warning.  Might have been a
false positive, but there’s no behaviour change.

Change-Id: I147eadb054d4cde44012fd8e8b9eb5e739eef6ad
parent f1f33bc9
......@@ -224,7 +224,7 @@ size_t vtkWrapPython_PyTemplateName(const char *name, char *pname)
j = i;
m = 1;
while (name[i] != '>' && i < n && m != 0)
while (i < n && m != 0 && name[i] != '>')
{
if (name[i] >= '0' && name[i] <= '9')
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment