Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:1352
gnome-control-center.openSUSE_12.1_Update
gnome-control-center-shell-no-crash.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-control-center-shell-no-crash.patch of Package gnome-control-center.openSUSE_12.1_Update
commit 59fe530504a4359f66d9a112050970a52fe46281 Author: Vincent Untz <vuntz@gnome.org> Date: Tue Oct 11 22:51:42 2011 +0200 shell: Avoid crash when searching if a .desktop has no comment The code doing the search assumes the description column is set, which might not be the case. https://bugzilla.gnome.org/show_bug.cgi?id=661494 diff --git a/shell/shell-search-renderer.c b/shell/shell-search-renderer.c index 0667bc0..6032af8 100644 --- a/shell/shell-search-renderer.c +++ b/shell/shell-search-renderer.c @@ -154,12 +154,15 @@ shell_search_renderer_set_layout (ShellSearchRenderer *cell, GtkWidget *widget) needle = g_utf8_casefold (priv->search_string, -1); else needle = NULL; - haystack = g_utf8_casefold (full_string, -1); + if (full_string != NULL) + haystack = g_utf8_casefold (full_string, -1); + else + haystack = NULL; /* clear any previous attributes */ pango_layout_set_attributes (priv->layout, NULL); - if (priv->search_string && priv->title + if (priv->search_string && priv->search_target && priv->title && (strstr (haystack, needle))) { gchar *start;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor