aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-07-23 08:30:57 +0000
committerGuy Harris <guy@alum.mit.edu>1999-07-23 08:30:57 +0000
commite14befef2202ebdce160780849c87ea4265f6f65 (patch)
tree657eb73cf94fde292a1bac56dfc88d03521b3480 /print.c
parent356a07b384d1b3ff58ccf8a5f01b76f879055baf (diff)
downloadwireshark-e14befef2202ebdce160780849c87ea4265f6f65.tar.gz
wireshark-e14befef2202ebdce160780849c87ea4265f6f65.tar.bz2
wireshark-e14befef2202ebdce160780849c87ea4265f6f65.zip
Fix "open_print_dest()" to do the right thing.
svn path=/trunk/; revision=379
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/print.c b/print.c
index 41e294a790..36e136261e 100644
--- a/print.c
+++ b/print.c
@@ -1,7 +1,7 @@
/* print.c
* Routines for printing packet analysis trees.
*
- * $Id: print.c,v 1.14 1999/07/23 08:29:22 guy Exp $
+ * $Id: print.c,v 1.15 1999/07/23 08:30:57 guy Exp $
*
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
@@ -264,14 +264,12 @@ typedef struct {
FILE *open_print_dest(int to_file, const char *dest)
{
FILE *fh;
- char *out;
/* Open the file or command for output */
- out = dest;
if (to_file)
fh = fopen(dest, "w");
else
- fh = popen(prefs.pr_cmd, "w");
+ fh = popen(dest, "w");
return fh;
}