mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
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:
committed by
Benjamin Berg
parent
fb23f8690f
commit
0d9d7dcb46
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user