[gimp] Bug 755363 - Non-void function should return a value
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 755363 - Non-void function should return a value
- Date: Mon, 21 Sep 2015 18:38:02 +0000 (UTC)
commit 526a3a6020fe19e5c2361e93306006bf1cccc7f4
Author: Michael Natterer <mitch gimp org>
Date: Mon Sep 21 20:37:29 2015 +0200
Bug 755363 - Non-void function should return a value
Use g_return_val_if_fail() in function returning non-void.
app/display/gimptoolgui.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimptoolgui.c b/app/display/gimptoolgui.c
index f2b3dee..2298d8b 100644
--- a/app/display/gimptoolgui.c
+++ b/app/display/gimptoolgui.c
@@ -396,7 +396,7 @@ gimp_tool_gui_get_visible (GimpToolGui *gui)
{
GimpToolGuiPrivate *private;
- g_return_if_fail (GIMP_IS_TOOL_GUI (gui));
+ g_return_val_if_fail (GIMP_IS_TOOL_GUI (gui), FALSE);
private = GET_PRIVATE (gui);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]