mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
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:
parent
7f7512b62e
commit
e233859544
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user