IPP: NULL is not a valid use here

NULL was used as initial string, but this is leading to a seg-fault
on Apple Silocon hardware.
This commit is contained in:
Roland Knall 2022-10-28 14:31:38 +02:00 committed by Uli Heilmeier
parent 0b9edb2299
commit 58d545d5e6
1 changed files with 1 additions and 1 deletions

View File

@ -1427,7 +1427,7 @@ add_charstring_value(const gchar *tag_desc, proto_tree *tree, tvbuff_t *tvb,
if (tag == TAG_MEMBERATTRNAME)
proto_tree_add_item(tree, hf_ipp_memberattrname, tvb, valoffset, value_length, ENC_ASCII);
else
proto_tree_add_string_format(tree, hf_ipp_charstring_value, tvb, valoffset, value_length, NULL, "%s value: '%s'", tag_desc, tvb_format_text(wmem_packet_scope(), tvb, valoffset, value_length));
proto_tree_add_string_format(tree, hf_ipp_charstring_value, tvb, valoffset, value_length, "%s value: '%s'", tag_desc, tvb_format_text(wmem_packet_scope(), tvb, valoffset, value_length));
}
static int