Mercurial > pidgin.yaz
changeset 10916:e52ec3cffff4
[gaim-migrate @ 12675]
I'm not sure disconnect_window could ever be NULL here, but this is
obviously safer.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 14 May 2005 14:56:18 +0000 |
parents | ceb530338123 |
children | aca17634b9ab |
files | src/gtkconn.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconn.c Sat May 14 14:46:06 2005 +0000 +++ b/src/gtkconn.c Sat May 14 14:56:18 2005 +0000 @@ -126,9 +126,12 @@ char *label_text; GaimAccount *account = NULL; + if (disconnect_window == NULL) + return; + model = gtk_tree_view_get_model(GTK_TREE_VIEW(disconnect_window->treeview)); - if ((disconnect_window == NULL) || (model == NULL)) + if (model == NULL) return; if (!gtk_tree_model_get_iter_first(model, &iter)) {