aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2012-08-08 16:54:02 +0000
committerMichael Mann <mmann78@netscape.net>2012-08-08 16:54:02 +0000
commite0e533d643fbac41ddea4dc7495dc4fed221aff9 (patch)
treeffcde6212c6ab8975a3feeafb83ae54361835e3a /tshark.c
parent68e2e8b8891385efe6126fa1b5a578e9fc693fe4 (diff)
Have (almost) all preferences use the generic preferences API (per https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7402). This cleaned up a lot of hardcoded code and allows breaking up the prefs structure (or at least prevent it from growing too large) if desired.
Bugfixed problems mentioned in http://www.wireshark.org/lists/wireshark-dev/201208/msg00001.html Column preferences now support default '#' character svn path=/trunk/; revision=44348
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index c7bf0095c9..6a53f1b10e 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1791,7 +1791,7 @@ main(int argc, char *argv[])
#ifdef HAVE_LIBPCAP
/* trim the interface name and exit if that failed */
if (!capture_opts_trim_iface(&global_capture_opts,
- (prefs_p->capture_device) ? get_if_name(prefs_p->capture_device) : NULL)) {
+ ((prefs_p->capture_device) && (*prefs_p->capture_device != '\0')) ? get_if_name(prefs_p->capture_device) : NULL)) {
return 2;
}