diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-12-13 11:36:37 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-12-14 06:06:47 +0000 |
commit | 862a0b6472529ef6676c8bc56dd8f0be5166fd7c (patch) | |
tree | d0f06eb4ee67e07ed2b4bb51ab2485019429f608 /epan/wslua/wslua_proto_expert.c | |
parent | 11ccd830685e4037c3cce04a3dbfd2d05a5145f7 (diff) |
epan: Make expert info summary text mandatory
This will make the code easier and removes the use of a generic
"Expert Info" as name.
Change-Id: I57ad2adb851726106ddc5009f3c6ca61721f647a
Reviewed-on: https://code.wireshark.org/review/24792
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/wslua/wslua_proto_expert.c')
-rw-r--r-- | epan/wslua/wslua_proto_expert.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/wslua/wslua_proto_expert.c b/epan/wslua/wslua_proto_expert.c index feac031c4d..82c4868c21 100644 --- a/epan/wslua/wslua_proto_expert.c +++ b/epan/wslua/wslua_proto_expert.c @@ -82,6 +82,11 @@ WSLUA_CONSTRUCTOR ProtoExpert_new(lua_State* L) { return 0; } + if (!text[0]) { + luaL_argerror(L, WSLUA_ARG_ProtoExpert_new_TEXT, "Empty text"); + return 0; + } + switch (group) { case PI_CHECKSUM: case PI_SEQUENCE: |