mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Fix fatal on 0-length print to XML
This commit is contained in:
parent
466d0895df
commit
6e57ab9606
1 changed files with 1 additions and 1 deletions
|
|
@ -990,7 +990,7 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
|
|||
l >>= 1;
|
||||
}
|
||||
assert(fileidx < LOG_NUM_FILES);
|
||||
if (o.logfd[fileidx]) {
|
||||
if (o.logfd[fileidx] && len) {
|
||||
if ((logtype & (LOG_SKID|LOG_SKID_NOXLT)) && !skid_noxlate)
|
||||
skid_output(writebuf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue