Minor change to Kris' change to make nmap.registry.args always available.

Avoided using strdup() although it's minor.
This commit is contained in:
batrick 2008-06-03 02:17:10 +00:00
parent ec3d31ad7a
commit 2cea96ea2b
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -319,7 +319,7 @@ class NmapOps {
#ifndef NOLUA
int script;
char *scriptargs;
const char *scriptargs;
int scriptversion;
int scripttrace;
int scriptupdatedb;