[Commits] mimeview.c 1.83.2.180 1.83.2.181
pawel at claws-mail.org
pawel at claws-mail.org
Thu Nov 17 17:05:51 CET 2011
Update of /home/claws-mail/claws/src
In directory claws-mail:/tmp/cvs-serv5695/src
Modified Files:
Tag: gtk2
mimeview.c
Log Message:
2011-11-17 [pawel] 3.7.10cvs86
* src/mimeview.c
Fix crasher reported in bug #2543
Index: mimeview.c
===================================================================
RCS file: /home/claws-mail/claws/src/mimeview.c,v
retrieving revision 1.83.2.180
retrieving revision 1.83.2.181
diff -u -d -r1.83.2.180 -r1.83.2.181
--- mimeview.c 11 Nov 2011 17:28:06 -0000 1.83.2.180
+++ mimeview.c 17 Nov 2011 16:05:49 -0000 1.83.2.181
@@ -574,12 +574,12 @@
GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(mimeview->ctree));
GtkTreeIter iter;
GtkTreeSelection *selection;
- MimeInfo *partinfo;
+ MimeInfo *partinfo = NULL;
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(mimeview->ctree));
- gtk_tree_selection_get_selected(selection, NULL, &iter);
-
- gtk_tree_model_get(model, &iter, COL_DATA, &partinfo, -1);
+ if (gtk_tree_selection_get_selected(selection, NULL, &iter))
+ gtk_tree_model_get(model, &iter, COL_DATA, &partinfo, -1);
+
return partinfo;
}
More information about the Commits
mailing list