aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/packet_panes.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-07-01 15:20:02 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-07-01 15:20:02 +0000
commitff8842c8652696f474a3211e2ce15b40629d08f6 (patch)
tree5fd8e5f6b5c7c2ab4944b85ce0c81967e51d0a4e /ui/gtk/packet_panes.c
parent17772df943703554d7e186a0bea2bafe9c568dce (diff)
Fix Coverity CID 1037114 (Dereference before null check).
svn path=/trunk/; revision=50298
Diffstat (limited to 'ui/gtk/packet_panes.c')
-rw-r--r--ui/gtk/packet_panes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/packet_panes.c b/ui/gtk/packet_panes.c
index bee761bf9c..ab3a808b0c 100644
--- a/ui/gtk/packet_panes.c
+++ b/ui/gtk/packet_panes.c
@@ -834,6 +834,8 @@ get_top_finfo(proto_node *node, field_info *finfo)
proto_node *child;
field_info *top;
+ if (node == NULL)
+ return NULL;
if (PNODE_FINFO(node) == finfo) {
top = finfo;