Mercurial > pidgin
changeset 23360:d1eee441bf25
Avoid searching for a buddy with an empty name. This happens for the
.system logs.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 14 Jun 2008 02:01:41 +0000 |
parents | da78db9f188f |
children | 54aaea893a89 |
files | libpurple/log.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/log.c Fri Jun 13 04:57:45 2008 +0000 +++ b/libpurple/log.c Sat Jun 14 02:01:41 2008 +0000 @@ -1083,7 +1083,7 @@ } /* Determine if this (account, name) combination exists as a buddy. */ - if (account != NULL) + if (account != NULL && name != NULL && *name != '\0') set->buddy = (purple_find_buddy(account, name) != NULL); else set->buddy = FALSE;