Mercurial > pidgin
changeset 4894:eea963dcd1ed
[gaim-migrate @ 5226]
Taso N. Devetzis (devetzis) writes:
"0th element of newly-initialised labels[] array has
NULL desc member in gtkft.c:make_info_table(), causing
SEGV in subsequent g_snprintf(). [Was] Reproducible via
"Tools->File Transfers". Patch generated against CVS."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 26 Mar 2003 02:57:17 +0000 |
parents | 8d2b454e20ea |
children | 9e50494f63a1 |
files | src/gtkft.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkft.c Wed Mar 26 02:20:43 2003 +0000 +++ b/src/gtkft.c Wed Mar 26 02:57:17 2003 +0000 @@ -510,7 +510,8 @@ GtkWidget *label; char buf[256]; - g_snprintf(buf, sizeof(buf), "<b>%s</b>", labels[i].desc); + g_snprintf(buf, sizeof(buf), "<b>%s</b>", + labels[i].desc != NULL ? labels[i].desc : ""); *labels[i].desc_label = label = gtk_label_new(NULL); gtk_label_set_markup(GTK_LABEL(label), buf);