[gnome-software/gnome-3-30] trivial: Fix a potential critical warning for apps with no description



commit b5e5c7f87e512a6fcf3c97f2638c24ffc72eb44b
Author: Richard Hughes <richard hughsie com>
Date:   Wed Nov 21 12:18:33 2018 +0000

    trivial: Fix a potential critical warning for apps with no description

 src/gs-summary-tile.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index 790a1c31..2acfb91e 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -158,7 +158,8 @@ gs_summary_tile_set_app (GsAppTile *app_tile, GsApp *app)
        switch (gs_app_get_kind (app)) {
        case AS_APP_KIND_SHELL_EXTENSION:
                text = g_strdup (gs_app_get_description (app));
-               g_strdelimit (text, "\n\t", ' ');
+               if (text != NULL)
+                       g_strdelimit (text, "\n\t", ' ');
                break;
        default:
                text = g_strdup (gs_app_get_summary (app));


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