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:
parent
fb23f8690f
commit
0d9d7dcb46
1 changed files with 2 additions and 3 deletions
|
@ -875,8 +875,7 @@ fp_print_deserialize (const guchar *data,
|
||||||
return g_steal_pointer (&result);
|
return g_steal_pointer (&result);
|
||||||
|
|
||||||
invalid_format:
|
invalid_format:
|
||||||
*error = g_error_new_literal (G_IO_ERROR,
|
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
|
||||||
G_IO_ERROR_INVALID_DATA,
|
"Data could not be parsed");
|
||||||
"Data could not be parsed");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue