GNOME Bugzilla – Bug 670236
segfault on defining shortcuts
Last modified: 2012-02-20 10:21:18 UTC
Created attachment 207797 [details] [review] proposed patch There's a segfault when trying to set a shortcut for various items - mostly those which GSettings type is "as", such as window keybindings. I don't know if there's a possibility to define multiple shortcuts for each action, I haven't touched existing code. The attached patch fixes a problem with replacing shortcut in empty strv list, thus effectively replacing the end NULL pointer. So let's free the empty array and allocate space for one item which is to be replaced.
Review of attachment 207797 [details] [review]: Looks good. Try to get Florian to look at it too.