aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tfshark.c b/tfshark.c
index c05dbadcdd..bbf245a6f1 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -2649,9 +2649,9 @@ cf_open_error_message(int err, gchar *err_info _U_, gboolean for_writing,
const char *errmsg;
/* static char errmsg_errno[1024+1]; */
+#if 0
if (err < 0) {
/* Wiretap error. */
-#if 0
switch (err) {
case FTAP_ERR_NOT_REGULAR_FILE:
@@ -2760,8 +2760,8 @@ cf_open_error_message(int err, gchar *err_info _U_, gboolean for_writing,
errmsg = errmsg_errno;
break;
}
-#endif
} else
+#endif
errmsg = file_open_error_message(err, for_writing);
return errmsg;
}