changeset 18289:c0e14bceee66

Don't crash on ncik completion if alias or name is NULL. Fixes #1742
author Sean Egan <seanegan@gmail.com>
date Tue, 26 Jun 2007 21:47:20 +0000
parents 58b0a4f75ece
children 2e7a9f33cfd3 0d948cac4afa
files pidgin/gtkconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Tue Jun 26 20:03:48 2007 +0000
+++ b/pidgin/gtkconv.c	Tue Jun 26 21:47:20 2007 +0000
@@ -3879,7 +3879,7 @@
 						   CHAT_USERS_ALIAS_COLUMN, &alias,
 						   -1);
 
-				if (strcmp(name, alias))
+				if (name && alias && strcmp(name, alias))
 					tab_complete_process_item(&most_matched, entered, &partial, nick_partial,
 										  &matches, FALSE, alias);
 				g_free(name);