summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-06-02 12:58:44 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-06-02 13:06:55 (GMT)
commita43297d6c71b3bf13309ab421abf0c737972608c (patch)
tree3d62cbaafdc590889b88a52ca96b7035c1486ff2
parent89fab58156d775d003ff78abc79a88738af80916 (diff)
downloadwocky-a43297d6c71b3bf13309ab421abf0c737972608c.tar.gz
wocky-a43297d6c71b3bf13309ab421abf0c737972608c.tar.xz
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.c2
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);