[gnumeric] python-loader: fix compilation warning.



commit 7b4729ccfa722aa83c64738c2036b87bbfb9ecdd
Author: Morten Welinder <terra gnome org>
Date:   Tue Jan 15 07:41:57 2019 -0500

    python-loader: fix compilation warning.

 plugins/python-loader/ChangeLog       | 4 ++++
 plugins/python-loader/python-loader.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/plugins/python-loader/ChangeLog b/plugins/python-loader/ChangeLog
index 5401e8d45..5a4aa69ec 100644
--- a/plugins/python-loader/ChangeLog
+++ b/plugins/python-loader/ChangeLog
@@ -1,3 +1,7 @@
+2019-01-15  Morten Welinder  <terra gnome org>
+
+       * python-loader.c (gplp_func_file_probe): Ensure return value.
+
 2018-11-24  Morten Welinder <terra gnome org>
 
        * Release 1.12.44
diff --git a/plugins/python-loader/python-loader.c b/plugins/python-loader/python-loader.c
index 617256581..862dc4305 100644
--- a/plugins/python-loader/python-loader.c
+++ b/plugins/python-loader/python-loader.c
@@ -224,7 +224,7 @@ gplp_func_file_probe (G_GNUC_UNUSED GOFileOpener const *fo, GOPluginService *ser
        g_return_val_if_fail (input != NULL, FALSE);
        if (_PyGObject_API == NULL) {
                pygobject_init (3, 0, 0);
-               g_return_if_fail (_PyGObject_API != NULL);
+               g_return_val_if_fail (_PyGObject_API != NULL, FALSE);
        }
 
        loader_data = g_object_get_data (G_OBJECT (service), "loader_data");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]