aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-06-26 13:51:53 +0000
committerXin LI <delphij@FreeBSD.org>2007-06-26 13:51:53 +0000
commit544970d64e0af5e3c03710d48dcd7cb10a35927f (patch)
tree4ceb9c53117f674941b77598a4481133d5276a55 /tools
parentc6feae72244fd50640e544aca79f52873c7d7448 (diff)
Notes
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/fsx/fsx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/regression/fsx/fsx.c b/tools/regression/fsx/fsx.c
index 316185d48116..7da745bfe3d1 100644
--- a/tools/regression/fsx/fsx.c
+++ b/tools/regression/fsx/fsx.c
@@ -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