aboutsummaryrefslogtreecommitdiff
path: root/src/device-provider.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-19 01:29:37 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-19 01:29:37 -0500
commit34161b390539cd5638ad3a71720168b5510be4a8 (patch)
treee6c82e878cd09b525a4c2a0044c98139da2c6815 /src/device-provider.c
parent9cb5ad014fb1518f765de05ddaab677d082afbf1 (diff)
downloadayatana-indicator-power-34161b390539cd5638ad3a71720168b5510be4a8.tar.gz
ayatana-indicator-power-34161b390539cd5638ad3a71720168b5510be4a8.tar.bz2
ayatana-indicator-power-34161b390539cd5638ad3a71720168b5510be4a8.zip
fix build issue in indicator_power_device_provider_get_devices(), reported by CI...
Diffstat (limited to 'src/device-provider.c')
-rw-r--r--src/device-provider.c2
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);
}