Wireshark-dev: Re: [Wireshark-dev] Is there a need for a 0, NULL element at the end of value st
From: Richard Sharpe <[email protected]>
Date: Tue, 16 Oct 2018 08:30:34 -0700
On Tue, Oct 16, 2018 at 8:24 AM Richard Sharpe
<[email protected]> wrote:
>
> Hi folks,
>
> I have always put a {0, NULL} element on the end of value strings, but
> it seems the lua code for constructing value strings when you use
> ProtoField(..., some_value_string) does not terminate the list with an
> empty element, and my test did not cause a crash.
>
> Rather, I got an "unknown" field as expected.
>
> Can anyone confirm they are not needed?

OK, ignore me. When you call g_array_new with TRUE in the first
argument you get a ZERO entry on the end.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)