diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-03-23 16:15:28 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-03-24 07:37:04 +0000 |
commit | 30a4398318a3facecbaf1b6e8621e880ca5ec028 (patch) | |
tree | a131fe7c2319a8480063a515234fedfc0861202f /epan/dissectors/packet-xml.c | |
parent | 2d7828794c0c79a3238ce71ec6f7f013245e9a88 (diff) |
Fix Argument with 'nonnull' attribute passed null found by Clang
Change-Id: Ie27fb4c5067c35237a5027ce6428b6cfed40b141
Reviewed-on: https://code.wireshark.org/review/797
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-xml.c')
-rw-r--r-- | epan/dissectors/packet-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-xml.c b/epan/dissectors/packet-xml.c index 6c63fda7ad..a0dd255950 100644 --- a/epan/dissectors/packet-xml.c +++ b/epan/dissectors/packet-xml.c @@ -968,7 +968,7 @@ static xml_ns_t *make_xml_hier(gchar *elem_name, } for (i = 0; i < hier->len; i++) { - if( strcmp(elem_name, (gchar *) g_ptr_array_index(hier, i) ) == 0 ) { + if( (elem_name) && (strcmp(elem_name, (gchar *) g_ptr_array_index(hier, i) ) == 0 )) { recurred = TRUE; } } |