summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-03-16 12:12:51 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-03-16 12:12:51 +0000
commit4efe662b04965c1842718257e7f23fd042a3ec64 (patch)
treea3f57c66ea1e56683f6ebf87fd4e4560823f536d /gtk
parent182553b988979ba3ec0b262035e75b730eccad68 (diff)
downloadwireshark-4efe662b04965c1842718257e7f23fd042a3ec64.tar.gz
Check struct pointer before dereferencing it.
Coverity CID 142 svn path=/trunk/; revision=17644
Diffstat (limited to 'gtk')
-rw-r--r--gtk/stats_tree_stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/stats_tree_stat.c b/gtk/stats_tree_stat.c
index 8840208701..51ba3b9476 100644
--- a/gtk/stats_tree_stat.c
+++ b/gtk/stats_tree_stat.c
@@ -253,7 +253,7 @@ static void init_gtk_tree(const char* optarg, void *userdata _U_) {
if (abbr) {
cfg = stats_tree_get_cfg_by_abbr(abbr);
- if (cfg->in_use) {
+ if (cfg && cfg->in_use) {
/* XXX: ! */
report_failure("cannot open more than one tree of the same type at once");
return;