Commit 622916b7 authored by Dan Winship's avatar Dan Winship

g_cancellable_release_fd: allow NULL cancellable

Almost all GCancellable methods silently do nothing if passed NULL for
the cancellable. Make g_cancellable_release_fd() do that as well.
parent 644dfbd7
......@@ -579,6 +579,9 @@ g_cancellable_release_fd (GCancellable *cancellable)
GCancellablePrivate *priv;
if (cancellable == NULL)
g_return_if_fail (G_IS_CANCELLABLE (cancellable));
g_return_if_fail (cancellable->priv->fd_refcount > 0);
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