[retro-gtk] options: Fix return value in some param checks
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] options: Fix return value in some param checks
- Date: Thu, 21 Sep 2017 07:56:35 +0000 (UTC)
commit c474b0e0f9d8db72ddbafcb04f7355863e427ecd
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Sep 20 13:07:40 2017 +0200
options: Fix return value in some param checks
retro-gtk/retro-options.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/retro-gtk/retro-options.c b/retro-gtk/retro-options.c
index 059b53d..f6a12c0 100644
--- a/retro-gtk/retro-options.c
+++ b/retro-gtk/retro-options.c
@@ -77,8 +77,8 @@ retro_options_get_option_value (RetroOptions *self,
{
RetroOption *option;
- g_return_val_if_fail (RETRO_IS_OPTIONS (self), FALSE);
- g_return_val_if_fail (key != NULL, FALSE);
+ g_return_val_if_fail (RETRO_IS_OPTIONS (self), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
option = RETRO_OPTION (g_hash_table_lookup (self->options, key));
@@ -116,8 +116,8 @@ retro_options_get_option_description (RetroOptions *self,
{
RetroOption *option;
- g_return_val_if_fail (RETRO_IS_OPTIONS (self), FALSE);
- g_return_val_if_fail (key != NULL, FALSE);
+ g_return_val_if_fail (RETRO_IS_OPTIONS (self), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
option = RETRO_OPTION (g_hash_table_lookup (self->options, key));
@@ -130,8 +130,8 @@ retro_options_get_option_values (RetroOptions *self,
{
RetroOption *option;
- g_return_val_if_fail (RETRO_IS_OPTIONS (self), FALSE);
- g_return_val_if_fail (key != NULL, FALSE);
+ g_return_val_if_fail (RETRO_IS_OPTIONS (self), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
option = RETRO_OPTION (g_hash_table_lookup (self->options, key));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]