aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-04-25 12:04:08 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-04-25 12:04:08 +0000
commit895375603d9a14cafbd1ef70ea87a39d9e51d9f9 (patch)
tree42dde0714aef5ead2cf2385fb258bdf99c01f457 /file.c
parentb03a9d08f3b7b319f4c27771582eee366e0626f8 (diff)
put all required data into the print_args,
instead of confusing seperation of data svn path=/trunk/; revision=10692
Diffstat (limited to 'file.c')
-rw-r--r--file.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/file.c b/file.c
index 4ad09b946b..ea58cf4453 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.378 2004/04/24 23:13:45 ulfl Exp $
+ * $Id: file.c,v 1.379 2004/04/25 12:04:07 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1610,8 +1610,13 @@ print_packets(capture_file *cf, print_args_t *print_args)
int line_len;
psp_return_t ret;
- callback_args.print_fh = open_print_dest(print_args->to_file,
- print_args->dest);
+ if(print_args->to_file) {
+ callback_args.print_fh = open_print_dest(print_args->to_file,
+ print_args->file);
+ } else {
+ callback_args.print_fh = open_print_dest(print_args->to_file,
+ print_args->cmd);
+ }
if (callback_args.print_fh == NULL)
return PP_OPEN_ERROR; /* attempt to open destination failed */