[gnome-software] trivial: Fix a potential critical warning for apps with no description
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix a potential critical warning for apps with no description
- Date: Wed, 21 Nov 2018 12:19:01 +0000 (UTC)
commit fff8d86a9a0a4d4cd60886668a1b7e1b634dde5d
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 e9f54479..26506350 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -157,7 +157,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]