diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-07-23 08:30:57 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-07-23 08:30:57 +0000 |
commit | 7872adadc0ba0bc74307d8e0674d3e88ecbdf9b2 (patch) | |
tree | 657eb73cf94fde292a1bac56dfc88d03521b3480 /print.c | |
parent | 9c1876312a82a15f7daf3edb8a413870e3ccdb7d (diff) |
Fix "open_print_dest()" to do the right thing.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@379 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |