Magellan Linux

Annotation of /trunk/xarchiver/patches/xarchiver-0.5.2-segfault.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1581 - (hide annotations) (download)
Mon Nov 28 20:22:05 2011 UTC (12 years, 6 months ago) by niro
File size: 606 byte(s)
-adding xarchiver patches
1 niro 1581 diff -pur xarchiver-0.5.2/src/open-with-dlg.c xarchiver-0.5.2.new/src/open-with-dlg.c
2     --- xarchiver-0.5.2/src/open-with-dlg.c 2008-10-17 14:06:03.000000000 +0200
3     +++ xarchiver-0.5.2.new/src/open-with-dlg.c 2011-05-16 21:48:49.042839556 +0200
4     @@ -289,7 +289,10 @@ static void xa_open_with_dialog_selectio
5     GtkTreeIter iter;
6     GtkTreeModel *model;
7    
8     - gtk_tree_selection_get_selected(selection,&model,&iter);
9     + if (!gtk_tree_selection_get_selected(selection,&model,&iter)) {
10     + return;
11     + }
12     +
13     gtk_tree_model_get(model,&iter,2,&exec,-1);
14    
15     gtk_entry_set_text(GTK_ENTRY(data->custom_command_entry),exec);