summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2013-10-29 12:51:23 +0000
committerRichard Hughes <richard@hughsie.com>2013-10-29 12:51:23 +0000
commit97ed6c47319295cfc15b9c9618137d2a56d03497 (patch)
tree33651202cd5f3bce896d29b3562be120e4b732f3
parente673d9e59b9e3c71d1b49d308fcea50f6ec4093d (diff)
downloadupower-97ed6c47319295cfc15b9c9618137d2a56d03497.tar.gz
trivial: Fix a compile warning in the linux backend
-rw-r--r--src/linux/up-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
index 6ee29f7..bfecc8e 100644
--- a/src/linux/up-backend.c
+++ b/src/linux/up-backend.c
@@ -386,7 +386,7 @@ up_backend_get_critical_action (UpBackend *backend)
};
guint i;
- g_return_if_fail (backend->priv->logind_proxy != NULL);
+ g_return_val_if_fail (backend->priv->logind_proxy != NULL, NULL);
for (i = 0; i < G_N_ELEMENTS (actions); i++) {
GVariant *result;