diff options
author | Michael Mann <mmann78@netscape.net> | 2012-08-08 16:54:02 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2012-08-08 16:54:02 +0000 |
commit | e0e533d643fbac41ddea4dc7495dc4fed221aff9 (patch) | |
tree | ffcde6212c6ab8975a3feeafb83ae54361835e3a /tshark.c | |
parent | 68e2e8b8891385efe6126fa1b5a578e9fc693fe4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |