Commit 549c80fe authored by Christian Kellner's avatar Christian Kellner

proxy: fix pre-condition check for error

The correct check is that either error is NULL or it is unset, i.e.
*error == NULL.
parent f5493597
......@@ -625,7 +625,7 @@ bolt_proxy_set (BoltProxy *proxy,
g_return_val_if_fail (G_IS_PARAM_SPEC (spec), FALSE);
g_return_val_if_fail (G_IS_VALUE (value), FALSE);
g_return_val_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable), FALSE);
g_return_val_if_fail (error != NULL || *error == NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
conv = bolt_proxy_get_wire_conv (proxy, spec, error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment