Fix a obsecure coredump while testing with tmpfs on amd64.

Approved by:	re (kensmith)
This commit is contained in:
Xin LI 2007-06-26 13:51:53 +00:00
parent c6feae7224
commit 544970d64e

View File

@ -164,9 +164,13 @@ prt(char *fmt, ...)
va_start(args, fmt);
vfprintf(stdout, fmt, args);
if (fsxlogf)
vfprintf(fsxlogf, fmt, args);
va_end(args);
if (fsxlogf) {
va_start(args, fmt);
vfprintf(fsxlogf, fmt, args);
va_end(args);
}
}
void