mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-12 04:28:22 -05:00
scanner: Refuse types other than "destructor"
Previously they were ignored. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
parent
b5d84ea6fe
commit
81bbde007e
1 changed files with 4 additions and 1 deletions
|
|
@ -821,8 +821,11 @@ start_element(void *data, const char *element_name, const char **atts)
|
|||
wl_list_insert(ctx->interface->event_list.prev,
|
||||
&message->link);
|
||||
|
||||
if (type != NULL && strcmp(type, "destructor") == 0)
|
||||
if (type != NULL) {
|
||||
if (strcmp(type, "destructor") != 0)
|
||||
fail(&ctx->loc, "type of request or event must be \"destructor\" if specified");
|
||||
message->destructor = 1;
|
||||
}
|
||||
|
||||
version = version_from_since(ctx, since);
|
||||
if (version < ctx->interface->since)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue