diff options
author | Leandro Augusto Fogolin Pereira <leandro@zorg.(none)> | 2008-12-28 12:27:00 -0200 |
---|---|---|
committer | Leandro Augusto Fogolin Pereira <leandro@zorg.(none)> | 2008-12-28 12:27:00 -0200 |
commit | 4631401306344b32c86cc355282ff577a3a70c93 (patch) | |
tree | c3d5d7fe43ebdaea0be7628e5d2ef9ef7320a178 /hardinfo2/report.c | |
parent | 8d78d9eba41d8dcec2c67d4b87ef093fdb716da2 (diff) |
Fix compilation errors; minor cleanups
Diffstat (limited to 'hardinfo2/report.c')
-rw-r--r-- | hardinfo2/report.c | 10 |
1 files changed, 6 insertions, 4 deletions
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, |