ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 36772: /trunk/plugins/profinet/ /tru

From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Fri, 22 Apr 2011 15:09:01 +0200


2011/4/21 Stig Bjørlykke <stig@xxxxxxxxxxxxx>
On Thu, Apr 21, 2011 at 10:31 PM, Alexis La Goutte
<alexis.lagoutte@xxxxxxxxx> wrote:
> I based my change on the previous revision of jmayer (rev36724) in this file
> and there is the same mistake !

Hmm, after a closer look I find that proto_item_add_subtree() returns
the input parameter, so we have no real bug here.

Good to known !

But this raises a question why we have to use the return value from
proto_item_add_subtree() for the tree, as proto_item and proto_tree
are the same...  I think the cleanest solution is to use the return
value, as this is done elsewhere and the implementation of
proto_item_add_subtree() may change.  Comments?

Yes, it is better solution !
Fix in Rev 36801

Why not add a check (in checkAPIs.pl) if proto_item_add_subtree always return a value ?