summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-13 21:59:04 +0000
committerpeter <peter@FreeBSD.org>2001-08-13 21:59:04 +0000
commitabfe61de7f3ba3c1c413c00400927a9afc10ad3f (patch)
tree92c5f8d8e9330fae2e842896cc5188a48afbc33c /usr.bin/truss
parent46b62d9c13063236cddb2fc0404a3293fdb992db (diff)
downloadFreeBSD-src-abfe61de7f3ba3c1c413c00400927a9afc10ad3f.zip
FreeBSD-src-abfe61de7f3ba3c1c413c00400927a9afc10ad3f.tar.gz
Initialize outfile in main()
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index d09ee67..7ea0dd0 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -71,7 +71,7 @@ extern void i386_linux_syscall_exit(int, int);
int pid = 0;
int nosigs = 0;
-FILE *outfile = stderr;
+FILE *outfile;
int Procfd;
char progtype[50]; /* OS and type of executable */
@@ -149,6 +149,7 @@ main(int ac, char **av) {
char *fname = NULL;
int sigexit = 0;
+ outfile = stdout;
while ((c = getopt(ac, av, "p:o:S")) != -1) {
switch (c) {
case 'p': /* specified pid */
OpenPOWER on IntegriCloud