Avoid negative array index (-1). Found with Coverity, CID 11

This commit is contained in:
kris 2007-11-16 00:17:23 +00:00
parent 5e67f7db4c
commit 242744baaa

View file

@ -1608,7 +1608,7 @@ void HostOsScan::makeFP(HostOsScanStats *hss) {
}
last = i;
}
if (last) hss->FPtests[last]->next = NULL;
if (last != -1) hss->FPtests[last]->next = NULL;
/* printf("%s", fp2ascii(FP)); */