aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.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 /airpcap_loader.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 'airpcap_loader.c')
-rw-r--r--airpcap_loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/airpcap_loader.c b/airpcap_loader.c
index 4481c2e5ff..e22fecad76 100644
--- a/airpcap_loader.c
+++ b/airpcap_loader.c
@@ -1584,7 +1584,7 @@ airpcap_get_default_if(GList* airpcap_if_list)
{
airpcap_if_info_t* if_info = NULL;
- if(prefs.capture_device != NULL)
+ if ((prefs.capture_device != NULL) && (*prefs.capture_device != '\0'))
{
if_info = get_airpcap_if_from_name(airpcap_if_list,
get_if_name(prefs.capture_device));