Commit 0d9d7dcb authored by Marco Trevisan's avatar Marco Trevisan Committed by Benjamin Berg
Browse files

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.
parent fb23f869
......@@ -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,
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
"Data could not be parsed");
return NULL;
}
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