diff options
author | Richard Hughes <richard@hughsie.com> | 2014-07-10 19:25:49 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-07-10 19:25:49 +0100 |
commit | b58f45ba51944a01319097a80bef1b16dfbd0e1f (patch) | |
tree | 6c1bca8cf2667a2a1f1d96fb53bf074c973f909a | |
parent | e6d93c0adb1849299c83411adb10b8c423f49f5d (diff) | |
download | appstream-glib-b58f45ba51944a01319097a80bef1b16dfbd0e1f.tar.gz |
trivial: Never show (null) for the comment in failed.html
-rw-r--r-- | client/as-util.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/client/as-util.c b/client/as-util.c index 5ad9332..dc10735 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -1128,11 +1128,15 @@ as_util_status_html_write_app (AsApp *app, GString *html) "Type", as_id_kind_to_string (as_app_get_id_kind (app))); g_string_append_printf (html, "<tr><td class=\"alt\">%s</td><td>%s</td></tr>\n", "Name", as_app_get_name (app, "C")); - g_string_append_printf (html, "<tr><td class=\"alt\">%s</td><td>%s</td></tr>\n", - "Comment", as_app_get_comment (app, "C")); + if (as_app_get_comment (app, "C") != NULL) { + g_string_append_printf (html, "<tr><td class=\"alt\">%s</td>" + "<td>%s</td></tr>\n", + "Comment", as_app_get_comment (app, "C")); + } if (as_app_get_description (app, "C") != NULL) { - g_string_append_printf (html, "<tr><td class=\"alt\">%s</td><td>%s</td></tr>\n", - "Description", as_app_get_description (app, "C")); + g_string_append_printf (html, "<tr><td class=\"alt\">%s</td>" + "<td>%s</td></tr>\n", + "Description", as_app_get_description (app, "C")); } /* packages */ |