diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-01-06 01:06:46 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-01-06 01:06:46 +0000 |
commit | 161d4d7efd09333b28a207a4f746102e2f92a1f5 (patch) | |
tree | 61ec173024a018147abc378475475a3b6f244779 /capture_loop.c | |
parent | 6919c9c80f971c57aab1f85aad049d08221c40b7 (diff) | |
download | wireshark-161d4d7efd09333b28a207a4f746102e2f92a1f5.tar.gz wireshark-161d4d7efd09333b28a207a4f746102e2f92a1f5.tar.bz2 wireshark-161d4d7efd09333b28a207a4f746102e2f92a1f5.zip |
code cleanup: use "-" for all places, where stdin/stdout is meant
tethereal internally converted the stdout capture filename "-" into "" which doesn't make any real sense and only complicated things.
To make things even more confusing, wiretap expected "" for dump output and "-" for offline reading ...
svn path=/trunk/; revision=16962
Diffstat (limited to 'capture_loop.c')
-rw-r--r-- | capture_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_loop.c b/capture_loop.c index 3ee9f05c5e..e2302a2d6a 100644 --- a/capture_loop.c +++ b/capture_loop.c @@ -1015,7 +1015,7 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd, * case the caller destroys it after we return. */ capfile_name = g_strdup(capture_opts->save_file); - if (strcmp(capfile_name, "") == 0) { + if (strcmp(capfile_name, "-") == 0) { /* Write to the standard output. */ if (capture_opts->multi_files_on) { /* ringbuffer is enabled; that doesn't work with standard output */ |