[frogr] Return the right type in g_return_val_if_vail
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Return the right type in g_return_val_if_vail
- Date: Sun, 20 Dec 2015 23:23:09 +0000 (UTC)
commit 72a6a8d879a3db66b38c47a65ccf261abf23c87a
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sun Dec 20 23:21:57 2015 +0000
Return the right type in g_return_val_if_vail
src/frogr-controller.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 2604eac..5ab395a 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -2626,14 +2626,14 @@ frogr_controller_set_active_account (FrogrController *self, const gchar *usernam
FrogrAccount *
frogr_controller_get_active_account (FrogrController *self)
{
- g_return_val_if_fail(FROGR_IS_CONTROLLER (self), FROGR_STATE_UNKNOWN);
+ g_return_val_if_fail(FROGR_IS_CONTROLLER (self), NULL);
return self->account;
}
GSList *
frogr_controller_get_all_accounts (FrogrController *self)
{
- g_return_val_if_fail(FROGR_IS_CONTROLLER (self), FROGR_STATE_UNKNOWN);
+ g_return_val_if_fail(FROGR_IS_CONTROLLER (self), NULL);
return frogr_config_get_accounts (self->config);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]