From 981d14e85ccf8d1dc721bd44e030728eff9b2501 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 6 Aug 2009 18:17:32 +0200 Subject: [PATCH] Improve documentation for g_error_matches() --- glib/gerror.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glib/gerror.c b/glib/gerror.c index ea454d5c..4327f9ac 100644 --- a/glib/gerror.c +++ b/glib/gerror.c @@ -166,12 +166,13 @@ g_error_copy (const GError *error) /** * g_error_matches: - * @error: a #GError + * @error: a #GError or %NULL * @domain: an error domain * @code: an error code * * Returns %TRUE if @error matches @domain and @code, %FALSE - * otherwise. + * otherwise. In particular, when @error is %NULL, %FALSE will + * be returned. * * Return value: whether @error has @domain and @code */ -- 2.34.1