diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2016-12-30 10:13:52 +0100 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2016-12-30 10:13:52 +0100 |
commit | f926ee727f607da14c95f70d6f719b57dd61dcb6 (patch) | |
tree | 652fc38898aff0a92ceefd9b4b833cb925bd200d | |
parent | 845418b4027d9d30a7de2a54e4944a8878d3f90e (diff) |
Do not return an empty value if computer::hi_get_field() is called
Return a helpful string instead to help translators
-rw-r--r-- | modules/computer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/computer.c b/modules/computer.c index dbc0585d..4712b1df 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -114,7 +114,7 @@ gchar *hi_get_field(gchar * field) } else if (g_str_equal(field, _("Available entropy in /dev/random"))) { tmp = computer_get_entropy_avail(); } else { - tmp = g_strdup(""); + tmp = g_strdup_printf("Unknown field: %s", field); } return tmp; } |