Skip to content
Commit 43f72689 authored by Mariusz Ceier's avatar Mariusz Ceier Committed by Kristian Høgsberg
Browse files

connection: Handle empty signature and signature with just a version.



Functions like wl_argument_from_va_list expect from get_next_argument,
to initialize details->type but when the signature is empty or contains
only version (like in desktop-shell-protocol.c in weston) it is left
uninitialized.

This patch fixes it, by initializing details->type with '\0' value,
signaling end of arguments.

Signed-off-by: default avatarMariusz Ceier <mceier+wayland@gmail.com>
parent 3f3671e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment