From the Wireshark git development branch:
commit
8dee8601776175a6132bef7ab19f36ee3d589d06
Author: John Thacker <johnthacker@gmail.com>
Date: Wed Oct 8 17:15:56 2025 -0400
pidl: Use has_property to avoid comparing undef with the empty string
Prevents a bunch of (harmless) warnings when compiling:
Use of uninitialized value in string eq at /builds/wireshark/wireshark/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm line 521.
Signed-off-by: John Thacker <johnthacker@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
} else {
$moreparam = "";
}
- if (($e->{PROPERTIES}->{switch_is} eq "") && ($switchvars{$name}) &&
+ if ((not has_property($e, "switch_is")) && ($switchvars{$name}) &&
#not a "native" type
(!($type =~ /^uint(8|16|1632|32|3264|64)/))) {
$param = $name;