Mercurial > pidgin.yaz
changeset 233:b8c5efaef154
[gaim-migrate @ 243]
Font face crash fix
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 15 May 2000 17:43:04 +0000 |
parents | f930b55a7367 |
children | 985635758c33 |
files | src/gaimrc.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gaimrc.c Mon May 15 17:41:47 2000 +0000 +++ b/src/gaimrc.c Mon May 15 17:43:04 2000 +0000 @@ -456,9 +456,11 @@ } else if (!strcmp(p->option, "font_options")) { font_options = atoi(p->value[0]); } else if (!strcmp(p->option, "font_face")) { - fontface = g_strconcat(p->value[0], '\0'); + if (p->value[0] != NULL) + fontface = g_strconcat(p->value[0], '\0'); } else if (!strcmp(p->option, "font_name")) { - fontname = g_strconcat(p->value[0], '\0'); + if (p->value[0] != NULL) + fontname = g_strconcat(p->value[0], '\0'); } else if (!strcmp(p->option, "latest_ver")) { g_snprintf(latest_ver, BUF_LONG, "%s", p->value[0]); } else if (!strcmp(p->option, "report_idle")) {