diff options
-rw-r--r-- | src/device-provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device-provider.c b/src/device-provider.c index 361ab3c..05c6cd0 100644 --- a/src/device-provider.c +++ b/src/device-provider.c @@ -62,7 +62,7 @@ indicator_power_device_provider_default_init (IndicatorPowerDeviceProviderInterf GList * indicator_power_device_provider_get_devices (IndicatorPowerDeviceProvider * self) { - g_return_if_fail (INDICATOR_IS_POWER_DEVICE_PROVIDER (self)); + g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE_PROVIDER (self), NULL); return INDICATOR_POWER_DEVICE_PROVIDER_GET_INTERFACE (self)->get_devices (self); } |