diff options
author | Mariusz Ceier <mceier+wayland@gmail.com> | 2013-07-10 23:40:56 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-12 21:52:33 -0400 |
commit | 43f7268989d8feb4b57c0f17af96f8c4ca2e6dd0 (patch) | |
tree | 7614eb74b0862633ac2a25a8b0e37bec9d93972d | |
parent | 3f3671e92e5c6e7e6e7a4b22371b1cccb7de8ca2 (diff) |
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: Mariusz Ceier <mceier+wayland@gmail.com>
-rw-r--r-- | src/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c index 2ca9bce..9bb850c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -419,6 +419,7 @@ get_next_argument(const char *signature, struct argument_details *details) details->nullable = 1; } } + details->type = '\0'; return signature; } |