Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 210278 Details for
Bug 291507
gnome-base/gnome-control-center-2.26.0 - gnome-keybinding-properties segfault
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.patch
1.patch (text/plain), 1.44 KB, created by
Pacho Ramos
on 2009-11-14 21:40:19 UTC
(
hide
)
Description:
1.patch
Filename:
MIME Type:
Creator:
Pacho Ramos
Created:
2009-11-14 21:40:19 UTC
Size:
1.44 KB
patch
obsolete
>From 5998aa90c08051cc520dfb64ede78783ef9cc2c4 Mon Sep 17 00:00:00 2001 >From: Jens Granseuer <jensgr@gmx.net> >Date: Tue, 11 Aug 2009 16:01:55 +0000 >Subject: Fix crash when iterating through the tree model > >Don't use indices to move through iterators, don't skip the first >section, and verify that we got a new iterator before using it >(bug #591392). >--- >diff --git a/capplets/keybindings/gnome-keybinding-properties.c b/capplets/keybindings/gnome-keybinding-properties.c >index fb3ba35..5383298 100644 >--- a/capplets/keybindings/gnome-keybinding-properties.c >+++ b/capplets/keybindings/gnome-keybinding-properties.c >@@ -522,25 +522,20 @@ find_section (GtkTreeModel *model, > GtkTreeIter *iter, > const char *title) > { >- gint i, j; >- gboolean found; >+ gboolean success, found; > >- i = gtk_tree_model_iter_n_children (model, NULL); > found = FALSE; >- gtk_tree_model_get_iter_first (model, iter); >- for (j = 0; j < i; j++) >+ success = gtk_tree_model_get_iter_first (model, iter); >+ while (success && !found) > { > char *description = NULL; > >- gtk_tree_model_iter_next (model, iter); > gtk_tree_model_get (model, iter, > DESCRIPTION_COLUMN, &description, > -1); >- if (g_strcmp0 (description, title) == 0) >- { >- found = TRUE; >- break; >- } >+ >+ found = (g_strcmp0 (description, title) == 0); >+ success = gtk_tree_model_iter_next (model, iter); > } > if (!found) > { >-- >cgit v0.8.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 291507
:
209007
|
209008
| 210278 |
210306