diff options
| author | Burt P <pburt0@gmail.com> | 2019-07-13 12:46:11 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-29 19:41:56 -0700 | 
| commit | a68615fc76bd178907531d0d9e837f3aca9d8bae (patch) | |
| tree | 2089b3ef170be54b15e5753640d1e1a716b648ad /shell | |
| parent | c76abd986b499ee7a0c53a1a7fc9cc6ea041bccd (diff) | |
shell.c: small fix for label
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/shell.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/shell/shell.c b/shell/shell.c index 48745f6b..a8d2c926 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -1537,7 +1537,7 @@ static void module_selected_show_info_detail(GKeyFile *key_file,              for (j = 0; keys[j]; j++) {                  gchar *key_markup;                  gchar *value; -                gchar *name = NULL, *label = NULL, *tag = NULL; +                gchar *name, *label, *tag;                  key_get_components(keys[j], NULL, &tag, &name, &label, NULL, TRUE);                  value = g_key_file_get_value(key_file, groups[i], keys[j], NULL); @@ -2220,6 +2220,8 @@ void key_get_components(const gchar *key,      if (label) {          *label = g_strdup(np);          gchar *lbp = g_utf8_strchr(*label, -1, '#'); +        if (lbp) +            *lbp = 0;          if (lbp && dis)              *dis = g_strdup(lbp + 1);      } | 
