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




commit b9e65c362195785c5db89ed72ab2c5445400ce08
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 a967ec9d1..ef1733987 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -5377,7 +5377,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]