aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-01-06 01:06:46 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-01-06 01:06:46 +0000
commit161d4d7efd09333b28a207a4f746102e2f92a1f5 (patch)
tree61ec173024a018147abc378475475a3b6f244779 /wiretap/file_access.c
parent6919c9c80f971c57aab1f85aad049d08221c40b7 (diff)
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 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 90e4fe437e..09b810f7d9 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -603,8 +603,8 @@ wtap_dumper* wtap_dump_open(const char *filename, int filetype, int encap,
if (wdh == NULL)
return NULL; /* couldn't allocate it */
- /* Empty filename means stdout */
- if (*filename == '\0') {
+ /* "-" means stdout */
+ if (strcmp(filename, "-") == 0) {
if(compressed) {
g_free(wdh);
return NULL; /* compress won't work on stdout */