Commit e2338595 authored by Philip Withnall's avatar Philip Withnall
Browse files

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's avatarPhilip Withnall <>
parent 7f7512b6
......@@ -1111,10 +1111,11 @@ g_propagate_prefixed_error (GError **dest,
g_propagate_error (dest, src);
if (dest && *dest)
if (dest)
va_list ap;
g_assert (*dest != NULL);
va_start (ap, format);
g_error_add_prefix (&(*dest)->message, format, ap);
va_end (ap);
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