print: use assert before dereference (CID 1412973).
Change-Id: I82602ceb735a055602a18c2c52e0669c4efd7773 Reviewed-on: https://code.wireshark.org/review/22748 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
877caf478b
commit
7a4c9d267b
|
@ -312,11 +312,13 @@ void
|
|||
write_pdml_proto_tree(output_fields_t* fields, gchar **protocolfilter, pf_flags protocolfilter_flags, epan_dissect_t *edt, FILE *fh, gboolean use_color)
|
||||
{
|
||||
write_pdml_data data;
|
||||
const color_filter_t *cfp = edt->pi.fd->color_filter;
|
||||
const color_filter_t *cfp;
|
||||
|
||||
g_assert(edt);
|
||||
g_assert(fh);
|
||||
|
||||
cfp = edt->pi.fd->color_filter;
|
||||
|
||||
/* Create the output */
|
||||
if (use_color && (cfp != NULL)) {
|
||||
fprintf(fh, "<packet foreground='#%02x%02x%02x' background='#%02x%02x%02x'>\n",
|
||||
|
|
Loading…
Reference in New Issue