Rename a variable so that it does not clash with one in outer scope.
This commit is contained in:
parent
b6abcb0436
commit
41e48b954d
|
|
@ -876,7 +876,7 @@ static int iplot(struct plot *pl, int id)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len == IPOINTMIN || !id) { /* Do initialization */
|
if (len == IPOINTMIN || !id) { /* Do initialization */
|
||||||
unsigned int index, len;
|
unsigned int index, node_len;
|
||||||
char commandline[4196];
|
char commandline[4196];
|
||||||
|
|
||||||
strcpy(commandline, "plot ");
|
strcpy(commandline, "plot ");
|
||||||
|
|
@ -897,11 +897,11 @@ static int iplot(struct plot *pl, int id)
|
||||||
if (ylims[1] < lims[1]) {
|
if (ylims[1] < lims[1]) {
|
||||||
ylims[1] = lims[1];
|
ylims[1] = lims[1];
|
||||||
}
|
}
|
||||||
len = (unsigned int)snprintf(commandline + index,
|
node_len = (unsigned int)snprintf(commandline + index,
|
||||||
(sizeof commandline) - index,
|
(sizeof commandline) - index,
|
||||||
"%s ", v->v_name);
|
"%s ", v->v_name);
|
||||||
if (commandline[index + len - 1] == ' ') // Not truncated
|
if (commandline[index + node_len - 1] == ' ') // Not truncated
|
||||||
index += len;
|
index += node_len;
|
||||||
else
|
else
|
||||||
commandline[index] = '\0'; // Crop partial name
|
commandline[index] = '\0'; // Crop partial name
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue