aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r--capture_ui_utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c
index 8ba64f9f0a..7e3f680660 100644
--- a/capture_ui_utils.c
+++ b/capture_ui_utils.c
@@ -55,7 +55,8 @@ capture_dev_user_descr_find(const gchar *if_name)
int lp = 0;
int ct = 0;
- if (prefs.capture_devices_descr == NULL) {
+ if ((prefs.capture_devices_descr == NULL) ||
+ (*prefs.capture_devices_descr == '\0')) {
/* There are no descriptions. */
return NULL;
}
@@ -108,7 +109,8 @@ capture_dev_user_linktype_find(const gchar *if_name)
gchar *p, *next;
long linktype;
- if (prefs.capture_devices_linktypes == NULL) {
+ if ((prefs.capture_devices_linktypes == NULL) ||
+ (*prefs.capture_devices_linktypes == '\0')) {
/* There are no link-layer header types */
return -1;
}