<p dir="ltr">We talked about this on IRC. looks good to me.</p>
<div class="gmail_quote">On Jul 10, 2013 4:42 PM, "Mariusz Ceier" <<a href="mailto:mceier%2Bwayland@gmail.com">mceier+wayland@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Functions like wl_argument_from_va_list expect from get_next_argument,<br>
to initialize details->type but when the signature is empty or contains<br>
only version (like in desktop-shell-protocol.c in weston) it is left<br>
uninitialized.<br>
<br>
This patch fixes it, by initializing details->type with '\0' value,<br>
signaling end of arguments.<br>
<br>
Signed-off-by: Mariusz Ceier <<a href="mailto:mceier%2Bwayland@gmail.com">mceier+wayland@gmail.com</a>><br>
---<br>
 src/connection.c | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/connection.c b/src/connection.c<br>
index 2ca9bce..9bb850c 100644<br>
--- a/src/connection.c<br>
+++ b/src/connection.c<br>
@@ -419,6 +419,7 @@ get_next_argument(const char *signature, struct argument_details *details)<br>
                        details->nullable = 1;<br>
                }<br>
        }<br>
+       details->type = '\0';<br>
        return signature;<br>
 }<br>
<br>
--<br>
1.8.3.2<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div>