From 4631401306344b32c86cc355282ff577a3a70c93 Mon Sep 17 00:00:00 2001 From: Leandro Augusto Fogolin Pereira Date: Sun, 28 Dec 2008 12:27:00 -0200 Subject: Fix compilation errors; minor cleanups --- hardinfo2/report.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'hardinfo2/report.c') diff --git a/hardinfo2/report.c b/hardinfo2/report.c index db86c5d8..253d8867 100644 --- a/hardinfo2/report.c +++ b/hardinfo2/report.c @@ -115,11 +115,9 @@ void report_table(ReportContext * ctx, gchar * text) gchar *key = keys[j]; gchar *value; - value = - g_key_file_get_value(key_file, tmpgroup, key, NULL); + value = g_key_file_get_value(key_file, tmpgroup, key, NULL); - if (g_utf8_validate(key, -1, NULL) - && g_utf8_validate(value, -1, NULL)) { + if (g_utf8_validate(key, -1, NULL) && g_utf8_validate(value, -1, NULL)) { strend(key, '#'); if (g_str_equal(value, "...")) { @@ -128,6 +126,10 @@ void report_table(ReportContext * ctx, gchar * text) value = g_strdup("..."); } } + + if (strchr(value, '|')) { + /* FIXME */ + } if (*key == '$') { report_key_value(ctx, strchr(key + 1, '$') + 1, -- cgit v1.2.3