fp-print: Don't deference the passed error, use g_set_error instead

It still may be NULL, but we don't protect from that.
This commit is contained in:
Marco Trevisan (Treviño) 2020-12-09 02:02:45 +01:00 committed by Benjamin Berg
parent fb23f8690f
commit 0d9d7dcb46

View file

@ -875,8 +875,7 @@ fp_print_deserialize (const guchar *data,
return g_steal_pointer (&result);
invalid_format:
*error = g_error_new_literal (G_IO_ERROR,
G_IO_ERROR_INVALID_DATA,
"Data could not be parsed");
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
"Data could not be parsed");
return NULL;
}