Skip to content

Commit 7418e08

Browse files
committed
bugfix: use of uninitialied variable
1 parent b98fc17 commit 7418e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Software/LibreCAL-GUI/caldevice.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void CalDevice::loadCoefficientSetsThreadSlow(QStringList names, QList<int> port
243243
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+"_SHORT").toInt();
244244
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+"_LOAD").toInt();
245245
for(int jdx=idx+1;jdx<numPorts;jdx++) {
246-
int j = ports[j];
246+
int j = ports[jdx];
247247
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+QString::number(j)+"_THROUGH").toInt();
248248
}
249249
}

0 commit comments

Comments
 (0)