forked from osmocom/wireshark
Don't check "&(device.if_info)" to see if it's null.
It would be null only with a horribly buggy C implementation. Change-Id: I880747e9993a8b087d2b177ee0bed63644ecd646 Reviewed-on: https://code.wireshark.org/review/2179 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
1dead2b38c
commit
c246513dba
|
@ -711,7 +711,7 @@ capture_stat_start(capture_options *capture_opts) {
|
|||
/* Initialize the cache */
|
||||
for (i = 0; i < capture_opts->all_ifaces->len; i++) {
|
||||
device = g_array_index(capture_opts->all_ifaces, interface_t, i);
|
||||
if (device.type != IF_PIPE && &(device.if_info)) {
|
||||
if (device.type != IF_PIPE) {
|
||||
sc_item = (if_stat_cache_item_t *)g_malloc0(sizeof(if_stat_cache_item_t));
|
||||
sc_item->name = g_strdup(device.if_info.name);
|
||||
sc->cache_list = g_list_append(sc->cache_list, sc_item);
|
||||
|
|
Loading…
Reference in New Issue