for loop bug fixed

pull/12/head
Tom Early 7 years ago
parent a5286ede78
commit aadb94ad33

@ -1054,7 +1054,8 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b
} else { // g2buflen == 27
/* find out which repeater module to send the data to */
int i;
for (i=0; i<3 && rptr.mod[i].defined; i++) {
for (i=0; i<3; i++) {
if (rptr.mod[i].defined) {
/* streamid match ? */
bool match = (toRptr[i].streamid == g2buf.streamid);
if (is_from_g2)
@ -1088,7 +1089,8 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b
if (bool_qso_details)
printf("id=%04x END\n", ntohs(g2buf.streamid));
}
break;
break; // we're done
}
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.