# HG changeset patch # User Eric Warmenhoven # Date 985739302 0 # Node ID 45800119e0396ad379cea6707202781f73702fd2 # Parent 8c1861a8daa15f143d5c8a43791951a2092805b7 [gaim-migrate @ 1667] this should help avoid segfaults committer: Tailor Script diff -r 8c1861a8daa1 -r 45800119e039 plugins/yay/yay.c --- a/plugins/yay/yay.c Tue Mar 27 22:26:23 2001 +0000 +++ b/plugins/yay/yay.c Wed Mar 28 00:28:22 2001 +0000 @@ -146,7 +146,10 @@ msg = va_arg(ap, char *); va_end(ap); - e = tmp = g_strdup(msg); + if (msg) + e = tmp = g_strdup(msg); + else + return; while ((c = strchr(e, '\033')) != NULL) { *c++ = '\0';