mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-05-09 04:58:03 +02:00
scanner: reject destructor type on event
Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
This commit is contained in:
parent
e647f6304d
commit
6dd87030dc
1 changed files with 3 additions and 0 deletions
|
|
@ -840,6 +840,9 @@ start_element(void *data, const char *element_name, const char **atts)
|
|||
if (strcmp(name, "destroy") == 0 && !message->destructor)
|
||||
fail(&ctx->loc, "destroy request should be destructor type");
|
||||
|
||||
if (strcmp(element_name, "event") == 0 && message->destructor)
|
||||
fail(&ctx->loc, "event cannot have type destructor");
|
||||
|
||||
ctx->message = message;
|
||||
} else if (strcmp(element_name, "arg") == 0) {
|
||||
if (name == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue