aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index ac03009..b163682 100644
--- a/src/device.c
+++ b/src/device.c
@@ -307,7 +307,7 @@ indicator_power_device_get_icon_names (const IndicatorPowerDevice * device)
const gchar *index_str;
/* LCOV_EXCL_START */
- g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), UP_DEVICE_KIND_UNKNOWN);
+ g_return_val_if_fail (INDICATOR_IS_POWER_DEVICE(device), NULL);
/* LCOV_EXCL_STOP */
gdouble percentage = indicator_power_device_get_percentage (device);