comparison pidgin/gtkconv.c @ 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 8d425f1abf95
children 2e7a9f33cfd3 0d948cac4afa
comparison
equal deleted inserted replaced
18288:58b0a4f75ece 18289:c0e14bceee66
3877 gtk_tree_model_get(model, &iter, 3877 gtk_tree_model_get(model, &iter,
3878 CHAT_USERS_NAME_COLUMN, &name, 3878 CHAT_USERS_NAME_COLUMN, &name,
3879 CHAT_USERS_ALIAS_COLUMN, &alias, 3879 CHAT_USERS_ALIAS_COLUMN, &alias,
3880 -1); 3880 -1);
3881 3881
3882 if (strcmp(name, alias)) 3882 if (name && alias && strcmp(name, alias))
3883 tab_complete_process_item(&most_matched, entered, &partial, nick_partial, 3883 tab_complete_process_item(&most_matched, entered, &partial, nick_partial,
3884 &matches, FALSE, alias); 3884 &matches, FALSE, alias);
3885 g_free(name); 3885 g_free(name);
3886 g_free(alias); 3886 g_free(alias);
3887 3887