aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/report.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/report.c')
-rw-r--r--hardinfo2/report.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hardinfo2/report.c b/hardinfo2/report.c
index ca5f1afa..c3f49dbc 100644
--- a/hardinfo2/report.c
+++ b/hardinfo2/report.c
@@ -116,7 +116,9 @@ report_html_table(ReportContext *ctx, gchar *text)
if (g_str_equal(value, "...")) {
g_free(value);
- value = ctx->entry->fieldfunc(key);
+ if (!(value = ctx->entry->fieldfunc(key))) {
+ value = g_strdup("...");
+ }
}
if (*key == '$') {
@@ -194,10 +196,11 @@ report_get_filename(void)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
NULL);
-#if GTK_CHECK_VERSION(2,8,0)
+#if GTK_CHECK_VERSION(2,8,0)
gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),
TRUE);
-#endif
+#endif
+
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog),
"hardinfo report.html");