Avoid shadowing of variables

This commit is contained in:
Benny Baumann 2020-09-07 09:42:48 +02:00
parent 85ff6960ed
commit 13b1e96b12

View File

@ -375,9 +375,9 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity, int* width) {
for (int i = 0; i < pl->cpuCount; i++) {
char number[16];
xSnprintf(number, 9, "CPU %d", Settings_cpuId(pl->settings, i));
unsigned width = 4 + strlen(number);
if (width > this->width)
this->width = width;
unsigned cpu_width = 4 + strlen(number);
if (cpu_width > this->width)
this->width = cpu_width;
bool isSet = false;
if (curCpu < affinity->used && affinity->cpus[curCpu] == i) {