pidgin: d2c21516: Avoid searching for a buddy with an empt...

sadrul at pidgin.im sadrul at pidgin.im
Tue Jun 17 23:26:25 EDT 2008


-----------------------------------------------------------------
Revision: d2c2151625aeda6c5deb918d283fa0025644535e
Ancestor: ba3f5db0711c5a3b7c5b5510df2e5e3ae5adbbc3
Author: sadrul at pidgin.im
Date: 2008-06-14T02:01:41
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d2c2151625aeda6c5deb918d283fa0025644535e

Modified files:
        libpurple/log.c

ChangeLog: 

Avoid searching for a buddy with an empty name. This happens for the
.system logs.

-------------- next part --------------
============================================================
--- libpurple/log.c	be935ee2410e66e1b84ac7280a6a272f4b663e4a
+++ libpurple/log.c	fe5e338be0db19ca06501cec67aba3d3c1e44b4f
@@ -1083,7 +1083,7 @@ static void log_get_log_sets_common(GHas
 				}
 
 				/* 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;


More information about the Commits mailing list