Mercurial > pidgin.yaz
changeset 414:f9dc74875833
[gaim-migrate @ 424]
i really wish solaris' libc would handle null arguments better. for example,
in strlen, all they'd have to do is at the very top, add one line that says
if (!arg) return arg;
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 16 Jun 2000 10:01:10 +0000 |
parents | 7ea55575cc01 |
children | a266fd221c3c |
files | src/server.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Fri Jun 16 09:53:28 2000 +0000 +++ b/src/server.c Fri Jun 16 10:01:10 2000 +0000 @@ -921,7 +921,10 @@ } #endif - g_snprintf(buf2, sizeof(buf2), "User '%s' invites you to buddy chat room: '%s'\n%s", who, name, message); + if (message) + g_snprintf(buf2, sizeof(buf2), "User '%s' invites you to buddy chat room: '%s'\n%s", who, name, message); + else + g_snprintf(buf2, sizeof(buf2), "User '%s' invites you to buddy chat room: '%s'\n", who, name); d = gtk_dialog_new(); gtk_widget_realize(d);