mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 16:11:22 +00:00
trivial: Fix 'returning FALSE in a pointer function' warning
This commit is contained in:
parent
26e57dd4e2
commit
ad69dbbe48
@ -278,7 +278,7 @@ GBytes *
|
|||||||
fu_firmware_image_get_bytes (FuFirmwareImage *self)
|
fu_firmware_image_get_bytes (FuFirmwareImage *self)
|
||||||
{
|
{
|
||||||
FuFirmwareImagePrivate *priv = GET_PRIVATE (self);
|
FuFirmwareImagePrivate *priv = GET_PRIVATE (self);
|
||||||
g_return_val_if_fail (FU_IS_FIRMWARE_IMAGE (self), FALSE);
|
g_return_val_if_fail (FU_IS_FIRMWARE_IMAGE (self), NULL);
|
||||||
if (priv->bytes == NULL)
|
if (priv->bytes == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
return g_bytes_ref (priv->bytes);
|
return g_bytes_ref (priv->bytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user