From 992e657efc1085d39cf42e95b6fadf2524dbd5e7 Mon Sep 17 00:00:00 2001 From: morriss Date: Tue, 4 Sep 2007 22:13:26 +0000 Subject: Don't call get_interface_descriptive_name() on a NULL iface: fixes a segfault when doing Statistics->Summary when you didn't capture anything (but rather read in a file) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22788 f5534014-38df-0310-8fa8-9805f1628bb7 --- capture_ui_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capture_ui_utils.c') diff --git a/capture_ui_utils.c b/capture_ui_utils.c index 78c4e55909..29cc38e7fb 100644 --- a/capture_ui_utils.c +++ b/capture_ui_utils.c @@ -358,7 +358,7 @@ get_if_name(const char *if_text) const char * get_iface_description(capture_options *capture_opts) { - if (!capture_opts->iface_descr) + if (!capture_opts->iface_descr && capture_opts->iface) capture_opts->iface_descr = get_interface_descriptive_name(capture_opts->iface); return(capture_opts->iface_descr); -- cgit v1.2.3