From 7f7512b62e96f5c2422a549a16400f8255621ef7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 6 Jan 2021 17:23:31 +0000 Subject: [PATCH] gerror: Drop a redundant branch At this point, `src` is guaranteed to be non-`NULL` due to the precondition check. Signed-off-by: Philip Withnall --- glib/gerror.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glib/gerror.c b/glib/gerror.c index 5fa489013..5199bdd60 100644 --- a/glib/gerror.c +++ b/glib/gerror.c @@ -1012,8 +1012,7 @@ g_propagate_error (GError **dest, if (dest == NULL) { - if (src) - g_error_free (src); + g_error_free (src); return; } else