gerror: Drop a redundant condition

At this point, if `dest` is non-`NULL` then we can guarantee
`*dest != NULL` due to `g_propagate_error()` succeeding.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-01-06 17:24:00 +00:00
parent 7f7512b62e
commit e233859544

View File

@ -1111,10 +1111,11 @@ g_propagate_prefixed_error (GError **dest,
{ {
g_propagate_error (dest, src); g_propagate_error (dest, src);
if (dest && *dest) if (dest)
{ {
va_list ap; va_list ap;
g_assert (*dest != NULL);
va_start (ap, format); va_start (ap, format);
g_error_add_prefix (&(*dest)->message, format, ap); g_error_add_prefix (&(*dest)->message, format, ap);
va_end (ap); va_end (ap);