1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 06:29:02 +00:00

Declare variables before executing any statement to follow

C standards.

Report and original patch by Gisle Vanem.
This commit is contained in:
henri
2013-05-02 08:36:08 +00:00
parent cce3012ac4
commit 371be36f88
2 changed files with 5 additions and 4 deletions

View File

@@ -205,8 +205,10 @@ void nsi_delete(nsock_iod nsockiod, int pending_response) {
for (i = 0; i < 3 && nsi->events_pending > 0; i++) {
for (current = evlist_ar[i]; current != NULL; current = next) {
msevent *nse;
next = GH_LIST_ELEM_NEXT(current);
msevent *nse = (msevent *)GH_LIST_ELEM_DATA(current);
nse = (msevent *)GH_LIST_ELEM_DATA(current);
/* we're done with this list of events for the current IOD */
if (nse->iod != nsi)