Declare the 'new_targets' inside the NOLUA conditional directives.

This commit is contained in:
djalal 2011-09-11 22:53:57 +00:00
parent 4e87a1df42
commit ae90b1b6f8

View file

@ -1501,9 +1501,9 @@ int nmap_main(int argc, char *argv[]) {
time_t timep;
char mytime[128];
addrset exclude_group;
#ifndef NOLUA
/* Only NSE scripts can add targets */
NewTargets *new_targets = NULL;
#ifndef NOLUA
/* Pre-Scan and Post-Scan script results datastructure */
ScriptResults *script_scan_results = NULL;
#endif