mirror of
https://github.com/nmap/nmap.git
synced 2026-06-19 15:08:40 +00:00
Fix an error I added in formatScriptOutput. It caused a segmentation
fault when a script produced an empty string as a result.
This commit is contained in:
parent
d096dd7626
commit
f9c55c71b6
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ static char *formatScriptOutput(ScriptResult sr) {
|
|||
}
|
||||
|
||||
if (lines.empty())
|
||||
lines[0] = "";
|
||||
lines.push_back("");
|
||||
for (i = 0; i < lines.size(); i++) {
|
||||
if (i < lines.size() - 1)
|
||||
result += "| ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue