diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-08-25 14:52:25 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-08-25 14:52:25 +0300 |
commit | c7ec06ff65f6b49f264d3a3a21c64615c9c1f090 (patch) | |
tree | 98f18821de099da5b914e8e7392bd8a8df1c61df /src/ui/console.c | |
parent | d6c90ac7ca8bd3e32e353b36e1eab54ccabd5eb9 (diff) | |
download | profani-tty-c7ec06ff65f6b49f264d3a3a21c64615c9c1f090.tar.gz |
removed strdup from g_string_append
Diffstat (limited to 'src/ui/console.c')
-rw-r--r-- | src/ui/console.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 6efc1cf1..42c4e080 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -687,15 +687,15 @@ cons_show_disco_info(const char *jid, GSList *identities, GSList *features) DiscoIdentity *identity = identities->data; // anme trpe, cat GString *identity_str = g_string_new(" "); if (identity->name != NULL) { - identity_str = g_string_append(identity_str, strdup(identity->name)); + identity_str = g_string_append(identity_str, identity->name); identity_str = g_string_append(identity_str, " "); } if (identity->type != NULL) { - identity_str = g_string_append(identity_str, strdup(identity->type)); + identity_str = g_string_append(identity_str, identity->type); identity_str = g_string_append(identity_str, " "); } if (identity->category != NULL) { - identity_str = g_string_append(identity_str, strdup(identity->category)); + identity_str = g_string_append(identity_str, identity->category); } cons_show(identity_str->str); g_string_free(identity_str, FALSE); @@ -1347,7 +1347,7 @@ _show_roster_contacts(GSList *list, gboolean show_groups) title = g_string_append(title, p_contact_barejid(contact)); if (p_contact_name(contact) != NULL) { title = g_string_append(title, " ("); - title = g_string_append(title, strdup(p_contact_name(contact))); + title = g_string_append(title, p_contact_name(contact)); title = g_string_append(title, ")"); } @@ -1394,7 +1394,7 @@ _show_roster_contacts(GSList *list, gboolean show_groups) if (groups != NULL) { GString *groups_str = g_string_new(" Groups : "); while (groups != NULL) { - g_string_append(groups_str, strdup(groups->data)); + g_string_append(groups_str, groups->data); if (g_slist_next(groups) != NULL) { g_string_append(groups_str, ", "); } |