Corrected a bad typo, "==" instead of "="; can cause a crash

condition when doing ext2spice.
This commit is contained in:
Tim Edwards 2021-03-18 11:52:56 -04:00
parent 2532a696e4
commit cde90bb4a7
1 changed files with 2 additions and 2 deletions

View File

@ -1935,7 +1935,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM)
hierD = extHierSDAttr(&dev->dev_terms[pn]);
resclass == (pn > 1) ? esFetInfo[dev->dev_type].resClassDrain :
resclass = (pn > 1) ? esFetInfo[dev->dev_type].resClassDrain :
esFetInfo[dev->dev_type].resClassSource;
// For parameter a<n> followed by parameter p<n>,
@ -1998,7 +1998,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM)
pn = plist->parm_type[1] - '0';
if (pn >= dev->dev_nterm) pn = dev->dev_nterm - 1;
resclass == (pn > 1) ? esFetInfo[dev->dev_type].resClassDrain :
resclass = (pn > 1) ? esFetInfo[dev->dev_type].resClassDrain :
esFetInfo[dev->dev_type].resClassSource;
hierD = extHierSDAttr(&dev->dev_terms[pn]);