diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-07-01 15:20:02 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-07-01 15:20:02 +0000 |
commit | ff8842c8652696f474a3211e2ce15b40629d08f6 (patch) | |
tree | 5fd8e5f6b5c7c2ab4944b85ce0c81967e51d0a4e /ui/gtk/packet_panes.c | |
parent | 17772df943703554d7e186a0bea2bafe9c568dce (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.c | 2 |
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; |