[gnome-software/gnome-40: 1/7] gs-app: Drop requirement for set_version_history() to be non-NULL




commit 64a0eaa4a1b1402a0e5926d0c274cfa962589149
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Apr 29 15:49:01 2021 +0100

    gs-app: Drop requirement for set_version_history() to be non-NULL
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-app.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index e8eb9d48b..2db3e6251 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -5365,7 +5365,6 @@ gs_app_set_version_history (GsApp *app, GPtrArray *version_history)
        GsAppPrivate *priv = gs_app_get_instance_private (app);
        g_autoptr(GMutexLocker) locker = NULL;
        g_return_if_fail (GS_IS_APP (app));
-       g_return_if_fail (version_history != NULL);
        locker = g_mutex_locker_new (&priv->mutex);
        _g_set_ptr_array (&priv->version_history, version_history);
 }


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