From 7d32a1aac743733aacb95dc95ae88e880f4f9a4c Mon Sep 17 00:00:00 2001 From: Vivek Dasmohapatra Date: Mon, 15 Jun 2009 14:20:15 +0100 Subject: g_object_new needs its arglist to be NULL terminated. --- wocky/wocky-connector.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wocky/wocky-connector.c b/wocky/wocky-connector.c index 33a83ba..07fbbda 100644 --- a/wocky/wocky-connector.c +++ b/wocky/wocky-connector.c @@ -862,7 +862,8 @@ WockyConnector * wocky_connector_new (const gchar *jid, const gchar *pass) { - return g_object_new (WOCKY_TYPE_CONNECTOR, "jid", jid, "password", pass); + return + g_object_new (WOCKY_TYPE_CONNECTOR, "jid", jid, "password", pass, NULL); } #define IFNULL(val,def) (((val) == NULL) ? (def) : (val)) @@ -888,5 +889,6 @@ wocky_connector_new_full (const gchar *jid, "insecure-tls-ok", insecure_tls_ok, "insecure-auth-ok", insecure_auth_ok, "encrypted-plain-auth-ok", encrypted_plain_auth_ok, - "tls-required", tls_required); + "tls-required", tls_required, + NULL); } -- cgit v1.2.3