aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2022-05-03 07:57:47 +0900
committer坂本 貴史 <o-takashi@sakamocchi.jp>2022-05-03 08:31:29 +0900
commitc9fcfd0d9db1e83ce80bfa355b7b92d0ccec6f81 (patch)
treece5127b0e394890eb6f388505153ebf070b47e92
parent1883ea805f5c609e08fa642be9c1d344ee66031b (diff)
downloadlibhinoko-c9fcfd0d9db1e83ce80bfa355b7b92d0ccec6f81.tar.gz
fw_iso_resource: minor code refactoring to check GError argument
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r--src/fw_iso_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fw_iso_resource.c b/src/fw_iso_resource.c
index 85e10da..e012376 100644
--- a/src/fw_iso_resource.c
+++ b/src/fw_iso_resource.c
@@ -153,7 +153,7 @@ void hinoko_fw_iso_resource_open(HinokoFwIsoResource *self, const gchar *path,
HinokoFwIsoResourcePrivate *priv;
g_return_if_fail(HINOKO_IS_FW_ISO_RESOURCE(self));
- g_return_if_fail(error != NULL && *error == NULL);
+ g_return_if_fail(error == NULL || *error == NULL);
priv = hinoko_fw_iso_resource_get_instance_private(self);
@@ -385,7 +385,7 @@ void hinoko_fw_iso_resource_create_source(HinokoFwIsoResource *self,
FwIsoResourceSource *src;
g_return_if_fail(HINOKO_IS_FW_ISO_RESOURCE(self));
- g_return_if_fail(error != NULL && *error == NULL);
+ g_return_if_fail(error == NULL || *error == NULL);
priv = hinoko_fw_iso_resource_get_instance_private(self);