From 35b4487538dc88a5687c5e3a99c8c70c099fdfa8 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 24 Jul 2014 19:25:44 -0700 Subject: Handle empty interface lists when the list changes. Don't assume that a change to the interface list is from a non-empty interface list to a different non-empty interface list. Change-Id: I94054ca0cf2661704aff1869385aa2155c19677d Reviewed-on: https://code.wireshark.org/review/3193 Reviewed-by: Guy Harris --- capture_opts.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'capture_opts.h') diff --git a/capture_opts.h b/capture_opts.h index a603a6e330..2097e2ab4d 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -236,10 +236,14 @@ typedef struct interface_options_tag { /** Capture options coming from user interface */ typedef struct capture_options_tag { /* general */ - GArray *ifaces; /* the interfaces to use for the next capture, - entries are of type interface_options */ - GArray *all_ifaces; /* all interfaces, - entries are of type interface_t */ + GArray *ifaces; /**< the interfaces to use for the + next capture, entries are of + type interface_options */ + GArray *all_ifaces; /**< all interfaces, entries are + of type interface_t */ + int ifaces_err; /**< if all_ifaces is null, the error + when it was fetched, if any */ + gchar *ifaces_err_info; /**< error string for that error */ guint num_selected; /* -- cgit v1.2.3