mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Minor change to Kris' change to make nmap.registry.args always available.
Avoided using strdup() although it's minor.
This commit is contained in:
parent
ec3d31ad7a
commit
2cea96ea2b
2 changed files with 2 additions and 2 deletions
|
|
@ -459,7 +459,7 @@ void NmapOps::ValidateOptions() {
|
|||
|
||||
/* Make sure nmap.registry.args is available (even if it's empty) */
|
||||
if (!scriptargs)
|
||||
scriptargs = strdup("");
|
||||
scriptargs = "";
|
||||
}
|
||||
|
||||
void NmapOps::setMaxOSTries(int mot) {
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ class NmapOps {
|
|||
|
||||
#ifndef NOLUA
|
||||
int script;
|
||||
char *scriptargs;
|
||||
const char *scriptargs;
|
||||
int scriptversion;
|
||||
int scripttrace;
|
||||
int scriptupdatedb;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue