From af22c26d69e062a181f87e00f7170f07f007868a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 4 Sep 2008 14:36:20 +0100 Subject: Make rest_proxy_bind by fixing the sanity check and fixing the va_args use --- rest/rest-proxy.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rest/rest-proxy.c') diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c index 39c68da..b96f352 100644 --- a/rest/rest-proxy.c +++ b/rest/rest-proxy.c @@ -147,18 +147,17 @@ rest_proxy_new (const gchar *url_format, } gboolean -rest_proxy_bind (RestProxy *proxy, - const gchar *first_param, ...) +rest_proxy_bind (RestProxy *proxy, ...) { RestProxyPrivate *priv = GET_PRIVATE (proxy); va_list params; g_return_val_if_fail (proxy != NULL, FALSE); g_return_val_if_fail (priv->url_format != NULL, FALSE); - g_return_val_if_fail (priv->binding_required != TRUE, FALSE); + g_return_val_if_fail (priv->binding_required == TRUE, FALSE); g_free (priv->url); - va_start (params, first_param); + va_start (params, proxy); priv->url = g_strdup_vprintf (priv->url_format, params); va_end (params); -- cgit v1.2.1