diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-06-02 14:58:44 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-06-02 15:06:55 +0200 |
commit | a43297d6c71b3bf13309ab421abf0c737972608c (patch) | |
tree | 3d62cbaafdc590889b88a52ca96b7035c1486ff2 | |
parent | 89fab58156d775d003ff78abc79a88738af80916 (diff) |
test-sasl-auth-server: NULL terminate the handlers array
The for loop is checking for handles[i].name being NULL.
-rw-r--r-- | tests/wocky-test-sasl-auth-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wocky-test-sasl-auth-server.c b/tests/wocky-test-sasl-auth-server.c index 03a3ad8..6be3e38 100644 --- a/tests/wocky-test-sasl-auth-server.c +++ b/tests/wocky-test-sasl-auth-server.c @@ -885,7 +885,7 @@ received_stanza (GObject *source, struct { const gchar *name; void (*func)(TestSaslAuthServer *self, WockyStanza *stanza); - } handlers[] = { HANDLE(auth), HANDLE(response) }; + } handlers[] = { HANDLE(auth), HANDLE(response), { NULL, NULL } }; stanza = wocky_xmpp_connection_recv_stanza_finish ( WOCKY_XMPP_CONNECTION (source), result, &error); |