aboutsummaryrefslogtreecommitdiffstats
path: root/cfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfile.c')
-rw-r--r--cfile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cfile.c b/cfile.c
index 382995e696..ef0f31a8d8 100644
--- a/cfile.c
+++ b/cfile.c
@@ -46,11 +46,9 @@ cap_file_get_interface_name(void *data, guint32 interface_id)
g_free(idb_info);
if (wtapng_if_descr) {
- if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_NAME, &interface_name) == WTAP_OPTTYPE_SUCCESS &&
- interface_name)
+ if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_NAME, &interface_name) == WTAP_OPTTYPE_SUCCESS)
return interface_name;
- if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCR, &interface_name) == WTAP_OPTTYPE_SUCCESS &&
- interface_name)
+ if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCR, &interface_name) == WTAP_OPTTYPE_SUCCESS)
return interface_name;
}
return "unknown";