[gimp] app: gimp_file_dialog_get_default_folder() must return a value.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: gimp_file_dialog_get_default_folder() must return a value.
- Date: Tue, 8 Sep 2015 21:59:38 +0000 (UTC)
commit d1e2b2c1621543c20e11a20f96ec62cc6ecfc5bf
Author: Jehan <jehan girinstud io>
Date: Tue Sep 8 23:59:13 2015 +0200
app: gimp_file_dialog_get_default_folder() must return a value.
Oups!
app/widgets/gimpfiledialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpfiledialog.c b/app/widgets/gimpfiledialog.c
index 10390de..b83eebf 100644
--- a/app/widgets/gimpfiledialog.c
+++ b/app/widgets/gimpfiledialog.c
@@ -635,7 +635,7 @@ gimp_file_dialog_set_file_proc (GimpFileDialog *dialog,
GFile *
gimp_file_dialog_get_default_folder (GimpFileDialog *dialog)
{
- g_return_if_fail (GIMP_IS_FILE_DIALOG (dialog));
+ g_return_val_if_fail (GIMP_IS_FILE_DIALOG (dialog), NULL);
GIMP_FILE_DIALOG_GET_CLASS (dialog)->get_default_folder (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]